mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
17 lines
276 B
Python
17 lines
276 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import sys
|
|
|
|
PY2 = sys.version_info[0] == 2
|
|
|
|
if not PY2:
|
|
text_type = str
|
|
string_types = (str,)
|
|
|
|
iteritems = lambda d: iter(d.items())
|
|
|
|
else:
|
|
text_type = unicode
|
|
string_types = (str, unicode)
|
|
|
|
iteritems = lambda d: d.iteritems()
|