[PATCH 5 of 8] hgext: make eol use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 15:12:56 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460226458 -19800
#      Sat Apr 09 23:57:38 2016 +0530
# Node ID af8001c687313cfe748d1e8be3a7dc3a6fcb5b79
# Parent  10e8bf41ae00f70863c3e06968bb9444ad2340f9
hgext: make eol use absolute_import

diff --git a/hgext/eol.py b/hgext/eol.py
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -90,10 +90,18 @@
 See :hg:`help patterns` for more information about the glob patterns
 used.
 """
+from __future__ import absolute_import
 
+import os
+import re
 from mercurial.i18n import _
-from mercurial import util, config, extensions, match, error
-import re, os
+from mercurial import (
+    config,
+    error,
+    extensions,
+    match,
+    util,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -3,7 +3,6 @@
   $ cd "$TESTDIR"/..
 
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
-  hgext/eol.py not using absolute_import
   hgext/extdiff.py not using absolute_import
   hgext/factotum.py not using absolute_import
   hgext/fetch.py not using absolute_import


More information about the Mercurial-devel mailing list