convert: cvsps use absolute_import
authortimeless <timeless@mozdev.org>
Wed, 02 Mar 2016 14:56:29 +0000
changeset 28369 71176606fa0a
parent 28368 b9296b330a54
child 28370 c1878afb063a
convert: cvsps use absolute_import
hgext/convert/cvsps.py
tests/test-check-py3-compat.t
--- a/hgext/convert/cvsps.py	Wed Mar 02 14:23:23 2016 +0000
+++ b/hgext/convert/cvsps.py	Wed Mar 02 14:56:29 2016 +0000
@@ -4,13 +4,17 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
+from __future__ import absolute_import
 
+import cPickle as pickle
 import os
 import re
-import cPickle as pickle
+
+from mercurial import (
+    hook,
+    util,
+)
 from mercurial.i18n import _
-from mercurial import hook
-from mercurial import util
 
 class logentry(object):
     '''Class logentry has the following attributes:
--- a/tests/test-check-py3-compat.t	Wed Mar 02 14:23:23 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 14:56:29 2016 +0000
@@ -29,7 +29,6 @@
   hgext/convert/common.py not using absolute_import
   hgext/convert/convcmd.py not using absolute_import
   hgext/convert/cvs.py not using absolute_import
-  hgext/convert/cvsps.py not using absolute_import
   hgext/convert/hg.py not using absolute_import
   hgext/convert/monotone.py not using absolute_import
   hgext/convert/p4.py not using absolute_import