[PATCH 6 of 8] py3: make i18n/posplit use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Thu May 12 17:28:59 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463088039 -19800
#      Fri May 13 02:50:39 2016 +0530
# Node ID ceee457b385c8f9512b9296f2813217e051b9cb4
# Parent  04ae82800fa6475f3385cd4525e7108825063c0a
py3: make i18n/posplit use absolute_import

diff --git a/i18n/posplit b/i18n/posplit
--- a/i18n/posplit
+++ b/i18n/posplit
@@ -5,7 +5,7 @@
 # license: MIT/X11/Expat
 #
 
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import polib
 import re
@@ -69,8 +69,8 @@
                             continue
                         else:
                             # lines following directly, unexpected
-                            print 'Warning: text follows line with directive' \
-                                  ' %s' % directive
+                            print('Warning: text follows line with directive' \
+                                  ' %s' % directive)
                     comment = 'do not translate: .. %s::' % directive
                     if not newentry.comment:
                         newentry.comment = comment


More information about the Mercurial-devel mailing list