Patchwork [08,of,13,V2,py3,support] notify: correct import of email module, sort stdlib modules to top

login
register
mail settings
Submitter Augie Fackler
Date Sept. 20, 2013, 2:23 p.m.
Message ID <77a5a10b01b76a6fc347.1379687026@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/2555/
State Superseded
Headers show

Comments

Augie Fackler - Sept. 20, 2013, 2:23 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1379686615 14400
#      Fri Sep 20 10:16:55 2013 -0400
# Node ID 77a5a10b01b76a6fc347ec4fe97507cef667ee6b
# Parent  b921835065ad98cec7d1565ae288440ca6bda1a5
notify: correct import of email module, sort stdlib modules to top

Patch

diff --git a/hgext/notify.py b/hgext/notify.py
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -133,9 +133,10 @@ 
 
 '''
 
+import email, socket, time
 from mercurial.i18n import _
 from mercurial import patch, cmdutil, templater, util, mail
-import email.Parser, email.Errors, fnmatch, socket, time
+import fnmatch
 
 testedwith = 'internal'