# HG changeset patch # User Christian Ebert # Date 1456828386 0 # Node ID a7b453b477268ccecd8b1c5da3fab1de418641ec # Parent 63c2864af25fba69925545093b75014cbbf644e2 keyword: use absolute_import diff -r 63c2864af25f -r a7b453b47726 hgext/keyword.py --- a/hgext/keyword.py Sun Feb 28 22:15:00 2016 -0500 +++ b/hgext/keyword.py Tue Mar 01 10:33:06 2016 +0000 @@ -82,12 +82,32 @@ {desc}" expands to the first line of the changeset description. ''' -from mercurial import commands, context, cmdutil, dispatch, filelog, extensions -from mercurial import localrepo, match, patch, templatefilters, util, error -from mercurial import scmutil, pathutil + +from __future__ import absolute_import + +import os +import re +import tempfile + from mercurial.hgweb import webcommands from mercurial.i18n import _ -import os, re, tempfile + +from mercurial import ( + cmdutil, + commands, + context, + dispatch, + error, + extensions, + filelog, + localrepo, + match, + patch, + pathutil, + scmutil, + templatefilters, + util, +) cmdtable = {} command = cmdutil.command(cmdtable) diff -r 63c2864af25f -r a7b453b47726 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sun Feb 28 22:15:00 2016 -0500 +++ b/tests/test-check-py3-compat.t Tue Mar 01 10:33:06 2016 +0000 @@ -59,7 +59,6 @@ hgext/highlight/__init__.py not using absolute_import hgext/highlight/highlight.py not using absolute_import hgext/histedit.py not using absolute_import - hgext/keyword.py not using absolute_import hgext/largefiles/__init__.py not using absolute_import hgext/largefiles/basestore.py not using absolute_import hgext/largefiles/lfcommands.py not using absolute_import