1 import sys 2 3 if sys.version_info[0] == 2: 4 def Bchr(value): 5 return chr(value) 6 7 else: 8 def Bchr(value): 9 return value 10