File: compat.py

package info (click to toggle)
python-mysqldb 1.3.7-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 508 kB
  • sloc: python: 2,856; ansic: 2,804; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
import sys

if sys.version_info[0] == 3:
    PY2 = False
    unicode = str
    unichr = chr
    long = int
else:
    PY2 = True
    unicode = unicode
    unichr = unichr
    long = long