[PATCH 6 of 8] py3: make i18n/posplit use absolute_import
Pulkit Goyal
7895pulkit at gmail.com
Thu May 12 17:31:01 EDT 2016
Please drop these commits, by mistake wrote the same commit message
for two different commits. Will be sending both the commits
separately.
On Fri, May 13, 2016 at 2:58 AM, Pulkit Goyal <7895pulkit at gmail.com> wrote:
> # 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list