# HG changeset patch # User Gregory Szorc # Date 1455068072 28800 # Node ID 7353cacd5d544b7cda50f763bc1c2b1cc29982aa # Parent 5166b7a84b72fdf8d65f0ec8f3310af26a25978a children: use absolute_import diff -r 5166b7a84b72 -r 7353cacd5d54 hgext/children.py --- a/hgext/children.py Tue Feb 09 17:33:10 2016 -0800 +++ b/hgext/children.py Tue Feb 09 17:34:32 2016 -0800 @@ -14,9 +14,15 @@ "children(REV)"` instead. ''' -from mercurial import cmdutil -from mercurial.commands import templateopts +from __future__ import absolute_import + from mercurial.i18n import _ +from mercurial import ( + cmdutil, + commands, +) + +templateopts = commands.templateopts cmdtable = {} command = cmdutil.command(cmdtable) diff -r 5166b7a84b72 -r 7353cacd5d54 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Tue Feb 09 17:33:10 2016 -0800 +++ b/tests/test-check-py3-compat.t Tue Feb 09 17:34:32 2016 -0800 @@ -32,7 +32,6 @@ doc/gendoc.py not using absolute_import doc/hgmanpage.py not using absolute_import hgext/__init__.py not using absolute_import - hgext/children.py not using absolute_import hgext/churn.py not using absolute_import hgext/clonebundles.py not using absolute_import hgext/color.py not using absolute_import