[PATCH 5 of 7] py3: use absolute_import in gpg.py

Robert Stanca robert.stanca7 at gmail.com
Sun Apr 17 13:17:04 EDT 2016


# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1460912273 -10800
#      Sun Apr 17 19:57:53 2016 +0300
# Node ID 5ee7deb2278d49012db0b6af4121c3671c57ffea
# Parent  ef5458f0a3f8827acbf4fcfe83a387d8deb50bcd
py3: use absolute_import in gpg.py

diff -r ef5458f0a3f8 -r 5ee7deb2278d hgext/gpg.py
--- a/hgext/gpg.py	Sun Apr 17 19:56:55 2016 +0300
+++ b/hgext/gpg.py	Sun Apr 17 19:57:53 2016 +0300
@@ -5,10 +5,21 @@
 
 '''commands to sign and verify changesets'''
 
-import os, tempfile, binascii
-from mercurial import util, commands, match, cmdutil, error
-from mercurial import node as hgnode
-from mercurial.i18n import _
+from __future__ import absolute_import
+import binascii
+import os
+import tempfile
+from mercurial.i18n import (
+    _,
+)
+from mercurial import (
+    cmdutil,
+    commands,
+    error,
+    match,
+    node as hgnode,
+    util,
+)
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
diff -r ef5458f0a3f8 -r 5ee7deb2278d tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sun Apr 17 19:56:55 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 17 19:57:53 2016 +0300
@@ -15,7 +15,6 @@
   hgext/fsmonitor/pywatchman/__init__.py requires print_function
   hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
   hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
-  hgext/gpg.py not using absolute_import
   hgext/graphlog.py not using absolute_import
   hgext/hgcia.py not using absolute_import
   hgext/hgk.py not using absolute_import


More information about the Mercurial-devel mailing list