mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 21:05:48 +01:00
12 lines
210 B
Python
12 lines
210 B
Python
import sys
|
|
|
|
def b(str_):
|
|
if sys.version_info >= (3,):
|
|
str_ = str_.encode('latin1')
|
|
return str_
|
|
|
|
def u(str_):
|
|
if sys.version_info < (3,):
|
|
str_ = str_.decode('latin1')
|
|
return str_
|