source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/gluon/contrib/pymysql/_compat.py

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 
1import sys
2
3PY2 = sys.version_info[0] == 2
4PYPY = hasattr(sys, 'pypy_translation_info')
5JYTHON = sys.platform.startswith('java')
6IRONPYTHON = sys.platform == 'cli'
7CPYTHON = not PYPY and not JYTHON and not IRONPYTHON
8
9if PY2:
10    import __builtin__
11    range_type = xrange
12    text_type = unicode
13    long_type = long
14    str_type = basestring
15    unichr = __builtin__.unichr
16else:
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.