diff i18n/hggettext @ 29171:de28dedd1ff1

py3: make i18n/hggettext use print_function
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 13 May 2016 02:58:15 +0530
parents 2516bba643e7
children 041fecbb588a
line wrap: on
line diff
--- 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__":