# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1463088495 -19800 # Node ID de28dedd1ff178054dca89fca7984aa1833fe2fd # Parent 2516bba643e7bf5d0248d38d16ebd6ec04e41408 py3: make i18n/hggettext use print_function diff -r 2516bba643e7 -r de28dedd1ff1 i18n/hggettext --- 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__":