nzbToMedia/libs/xdg/util.py
2014-06-27 17:04:44 +09:30

12 lines
164 B
Python

import sys
PY3 = sys.version_info[0] >= 3
if PY3:
def u(s):
return s
else:
# Unicode-like literals
def u(s):
return s.decode('utf-8')