schemas: use absolute_import
authortimeless <timeless@mozdev.org>
Wed, 02 Mar 2016 21:33:55 +0000
changeset 28379 27a9032374a7
parent 28378 96a7368a79b6
child 28380 ad266834251b
schemas: use absolute_import
hgext/schemes.py
tests/test-check-py3-compat.t
--- a/hgext/schemes.py	Wed Mar 02 21:30:51 2016 +0000
+++ b/hgext/schemes.py	Wed Mar 02 21:33:55 2016 +0000
@@ -39,9 +39,18 @@
 You can override a predefined scheme by defining a new scheme with the
 same name.
 """
+from __future__ import absolute_import
 
-import os, re
-from mercurial import extensions, hg, templater, util, error, cmdutil
+import os
+import re
+from mercurial import (
+    cmdutil,
+    error,
+    extensions,
+    hg,
+    templater,
+    util,
+)
 from mercurial.i18n import _
 
 cmdtable = {}
--- a/tests/test-check-py3-compat.t	Wed Mar 02 21:30:51 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 21:33:55 2016 +0000
@@ -60,7 +60,6 @@
   hgext/rebase.py not using absolute_import
   hgext/record.py not using absolute_import
   hgext/relink.py not using absolute_import
-  hgext/schemes.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/transplant.py not using absolute_import
   hgext/win32mbcs.py not using absolute_import