# HG changeset patch # User timeless # Date 1456955288 0 # Node ID d3c8183f429ea3fd4abb42666f23fbeab906f886 # Parent 21524ae331b7882d296b0460e359c7844e112af0 notify: use absolute_import diff -r 21524ae331b7 -r d3c8183f429e hgext/notify.py --- a/hgext/notify.py Wed Mar 02 21:42:42 2016 +0000 +++ b/hgext/notify.py Wed Mar 02 21:48:08 2016 +0000 @@ -132,11 +132,21 @@ references. See also ``notify.strip``. ''' +from __future__ import absolute_import -import email, socket, time +import email +import fnmatch +import socket +import time + +from mercurial import ( + cmdutil, + error, + mail, + patch, + util, +) from mercurial.i18n import _ -from mercurial import patch, cmdutil, util, mail, error -import fnmatch # Note for extension authors: ONLY specify testedwith = 'internal' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should diff -r 21524ae331b7 -r d3c8183f429e tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Wed Mar 02 21:42:42 2016 +0000 +++ b/tests/test-check-py3-compat.t Wed Mar 02 21:48:08 2016 +0000 @@ -44,7 +44,6 @@ hgext/largefiles/uisetup.py not using absolute_import hgext/largefiles/wirestore.py not using absolute_import hgext/mq.py not using absolute_import - hgext/notify.py not using absolute_import hgext/rebase.py not using absolute_import hgext/share.py not using absolute_import hgext/transplant.py not using absolute_import