main
Last change
on this file was
42bd667,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Historial Limpio
|
-
Property mode set to
100755
|
File size:
481 bytes
|
Line | |
---|
1 | import sys |
---|
2 | |
---|
3 | PY2 = sys.version_info[0] == 2 |
---|
4 | PYPY = hasattr(sys, 'pypy_translation_info') |
---|
5 | JYTHON = sys.platform.startswith('java') |
---|
6 | IRONPYTHON = sys.platform == 'cli' |
---|
7 | CPYTHON = not PYPY and not JYTHON and not IRONPYTHON |
---|
8 | |
---|
9 | if PY2: |
---|
10 | import __builtin__ |
---|
11 | range_type = xrange |
---|
12 | text_type = unicode |
---|
13 | long_type = long |
---|
14 | str_type = basestring |
---|
15 | unichr = __builtin__.unichr |
---|
16 | else: |
---|
17 | range_type = range |
---|
18 | text_type = str |
---|
19 | long_type = int |
---|
20 | str_type = str |
---|
21 | unichr = chr |
---|
Note: See
TracBrowser
for help on using the repository browser.