]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/rus/lat2rus.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / rus / lat2rus.py
index abf8af3823708ec56a391b81488942a7dbd607e6..4e3d5805b4d4a6c98dd5683ebcf10cdaaeb8b70e 100755 (executable)
@@ -1,9 +1,10 @@
 #! /usr/bin/env python
 # -*- coding: koi8-r -*-
 
+from __future__ import print_function
+
 #
 # Lat -> Rus translation
-# Written by Broytman. Copyright (C) 2002 PhiloSoft Design
 #
 
 lat2koi_d = {
@@ -111,6 +112,6 @@ def lat2win(instr):
 
 if __name__ == "__main__":
    Test = "Ghbdtn nt,t^ ghtrhfcysq vbh!"
-   print "Test:", Test
-   print "Тест:", lat2koi(Test)
-   print "Тест:", unicode(lat2win(Test), "cp1251").encode("koi8-r")
+   print("Test:", Test)
+   print("Тест:", lat2koi(Test))
+   print("Тест:", unicode(lat2win(Test), "cp1251").encode("koi8-r"))