Mercurial > hg
changeset 28969:cca011fd1ea7
py3: make eol use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 17 Apr 2016 02:10:55 +0530 |
parents | a5d449a7bc8f |
children | 4f86c3bed63b |
files | hgext/eol.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/eol.py Sun Apr 17 00:53:56 2016 +0530 +++ b/hgext/eol.py Sun Apr 17 02:10:55 2016 +0530 @@ -91,9 +91,18 @@ 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
--- a/tests/test-check-py3-compat.t Sun Apr 17 00:53:56 2016 +0530 +++ b/tests/test-check-py3-compat.t Sun Apr 17 02:10:55 2016 +0530 @@ -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