mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-12 02:22:56 +08:00
14 lines
227 B
Python
14 lines
227 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
import sys
|
||
|
|
||
|
|
||
|
_ver = sys.version_info
|
||
|
is_py3 = _ver[0] == 3
|
||
|
is_py2 = _ver[0] == 2
|
||
|
|
||
|
|
||
|
if is_py2:
|
||
|
bytes = lambda x: chr(x[0]) # @ReservedAssignment
|
||
|
elif is_py3:
|
||
|
bytes = bytes # @ReservedAssignment
|