mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-28 10:38:26 +00:00
11 lines
164 B
Python
11 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')
|