--- a/hgext/gpg.py Fri May 06 21:48:17 2016 +0530
+++ b/hgext/gpg.py Fri May 06 21:46:17 2016 +0530
@@ -5,9 +5,19 @@
'''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 __future__ import absolute_import
+
+import binascii
+import os
+import tempfile
+from mercurial import (
+ cmdutil,
+ commands,
+ error,
+ match,
+ node as hgnode,
+ util,
+)
from mercurial.i18n import _
cmdtable = {}
--- a/tests/test-check-py3-compat.t Fri May 06 21:48:17 2016 +0530
+++ b/tests/test-check-py3-compat.t Fri May 06 21:46:17 2016 +0530
@@ -7,7 +7,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/hgcia.py not using absolute_import
hgext/hgk.py not using absolute_import
hgext/highlight/__init__.py not using absolute_import
@@ -72,7 +71,7 @@
hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at __init__.py:*) (glob)
hgext/fetch.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
hgext/fsmonitor/watchmanclient.py: error importing module: <SystemError> Parent module 'hgext.fsmonitor' not loaded, cannot perform relative import (line *) (glob)
- hgext/gpg.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
+ hgext/gpg.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
hgext/graphlog.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
hgext/hgcia.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
hgext/hgk.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)