Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/markupsafe/_compat.py

Issue 23445019: Add MarkupSafe library to third_party (dependency for Jinja2 2.7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/markupsafe/__init__.py ('k') | third_party/markupsafe/_constants.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # -*- coding: utf-8 -*-
2 """
3 markupsafe._compat
4 ~~~~~~~~~~~~~~~~~~
5
6 Compatibility module for different Python versions.
7
8 :copyright: (c) 2013 by Armin Ronacher.
9 :license: BSD, see LICENSE for more details.
10 """
11 import sys
12
13 PY2 = sys.version_info[0] == 2
14
15 if not PY2:
16 text_type = str
17 string_types = (str,)
18 unichr = chr
19 int_types = (int,)
20 else:
21 text_type = unicode
22 string_types = (str, unicode)
23 unichr = unichr
24 int_types = (int, long)
OLDNEW
« no previous file with comments | « third_party/markupsafe/__init__.py ('k') | third_party/markupsafe/_constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698