]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/rus/rus2lat.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / rus / rus2lat.py
index b2677b244a99d69878b35da21d48c229baee9042..7fbbf06b5948d6d4268a02a4fdc03d69cc8e5f59 100755 (executable)
@@ -1,6 +1,8 @@
 #! /usr/bin/env python
 # -*- coding: koi8-r -*-
 
+from __future__ import print_function
+
 #
 # Rus -> Lat transliteration (koi2lat and win2lat)
 #
@@ -99,6 +101,6 @@ def win2lat(instr):
 
 if __name__ == "__main__":
    Test = "Щербаков Игорь Григорьевич. АБВ xyz абв ЬЬЭЮЯ ъьэюя"
-   print "Test:", Test
-   print "Тест:", koi2lat(Test)
-   print "Тест:", win2lat(unicode(Test, "koi8-r").encode("cp1251"))
+   print("Test:", Test)
+   print("Тест:", koi2lat(Test))
+   print("Тест:", win2lat(unicode(Test, "koi8-r").encode("cp1251")))