changeset 28379:27a9032374a7

schemas: use absolute_import
author timeless <timeless@mozdev.org>
date Wed, 02 Mar 2016 21:33:55 +0000
parents 96a7368a79b6
children ad266834251b
files hgext/schemes.py tests/test-check-py3-compat.t
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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