bazarr/libs/xdg/util.py

12 lines
164 B
Python
Raw Normal View History

2018-10-31 16:08:29 +00:00
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')