[PATCH 04 of 10 V3 py3 support] patch: correct import of email module

Augie Fackler raf at durin42.com
Fri Sep 20 12:19:35 CDT 2013


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1379686551 14400
#      Fri Sep 20 10:15:51 2013 -0400
# Node ID 051be411edfb17ba67a1e2bde3d25c5b3e623461
# Parent  b039ade816515f7d0c5d64034bc4bc407158ca3a
patch: correct import of email module

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -6,7 +6,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import cStringIO, email.Parser, os, errno, re, posixpath
+import cStringIO, email, os, errno, re, posixpath
 import tempfile, zlib, shutil
 
 from i18n import _


More information about the Mercurial-devel mailing list