mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Add rumps 0.3.0
This commit is contained in:
parent
1bca410bcb
commit
0571a091f7
7 changed files with 1671 additions and 0 deletions
17
lib/rumps/compat.py
Normal file
17
lib/rumps/compat.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# -*- 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()
|
Loading…
Add table
Add a link
Reference in a new issue