Patchwork [2,of,3] notify: use absolute_import

login
register
mail settings
Submitter timeless@mozdev.org
Date March 9, 2016, 4:26 a.m.
Message ID <7633109300555f96fc93.1457497561@waste.org>
Download mbox | patch
Permalink /patch/13713/
State Accepted
Headers show

Comments

timeless@mozdev.org - March 9, 2016, 4:26 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1456955288 0
#      Wed Mar 02 21:48:08 2016 +0000
# Node ID 7633109300555f96fc93171290287e02cacc8ef0
# Parent  13fb6f97cc034e5344d14292597add2170861d03
notify: use absolute_import

Patch

diff --git a/hgext/notify.py b/hgext/notify.py
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -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 --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
@@ -54,7 +54,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