xbmcbackup/resources/dropbox/six.py

12 lines
210 B
Python
Raw Normal View History

2012-10-22 21:34:12 +02:00
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_