mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
21 lines
363 B
Python
21 lines
363 B
Python
import sys
|
|
|
|
|
|
if sys.version_info > (3,):
|
|
long = int
|
|
xrange = range
|
|
else:
|
|
long = long
|
|
xrange = xrange
|
|
|
|
# unicode / binary types
|
|
if sys.version_info > (3,):
|
|
text_type = str
|
|
binary_type = bytes
|
|
string_types = (str,)
|
|
unichr = chr
|
|
else:
|
|
text_type = unicode
|
|
binary_type = str
|
|
string_types = (basestring,)
|
|
unichr = unichr
|