- print "Test:", Test
- print "Тест:", koi2lat(Test)
- print "Тест:", win2lat(unicode(Test, "koi8-r").encode("cp1251"))
+ print("Test:", Test)
+ print("Тест:", koi2lat(Test))
+ if isinstance(Test, bytes):
+ Test = Test.decode("cp1251")
+ print("Тест:", win2lat(Test.encode("cp1251")))