i18n/hggettext
changeset 29171 de28dedd1ff1
parent 29170 2516bba643e7
child 29720 041fecbb588a
--- a/i18n/hggettext	Fri May 13 02:56:13 2016 +0530
+++ b/i18n/hggettext	Fri May 13 02:58:15 2016 +0530
@@ -20,7 +20,7 @@
 join the message cataloges to get the final catalog.
 """
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import inspect
 import os
@@ -99,7 +99,7 @@
     if mod.__doc__:
         src = open(path).read()
         lineno = 1 + offset(src, mod.__doc__, path, 7)
-        print poentry(path, lineno, mod.__doc__)
+        print(poentry(path, lineno, mod.__doc__))
 
     functions = list(getattr(mod, 'i18nfunctions', []))
     functions = [(f, True) for f in functions]
@@ -119,12 +119,12 @@
             if rstrip:
                 doc = doc.rstrip()
             lineno += offset(src, doc, name, 1)
-            print poentry(path, lineno, doc)
+            print(poentry(path, lineno, doc))
 
 
 def rawtext(path):
     src = open(path).read()
-    print poentry(path, 1, src)
+    print(poentry(path, 1, src))
 
 
 if __name__ == "__main__":