mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-03-12 04:35:40 -07:00
18 lines
276 B
Python
18 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()
|