patch: remove email import workaround for Python 2.4
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 22 Jun 2015 10:09:08 -0700
changeset 25644 c99f9715cc9a
parent 25643 6f6c97d29a1e
child 25645 977102cb12fc
patch: remove email import workaround for Python 2.4 Python 2.6 provides access to the sub-modules just fine. This workaround is no longer needed since we no longer support Python 2.4.
mercurial/patch.py
--- a/mercurial/patch.py	Sun Jun 21 15:18:49 2015 +0900
+++ b/mercurial/patch.py	Mon Jun 22 10:09:08 2015 -0700
@@ -9,10 +9,6 @@
 import collections
 import cStringIO, email, os, errno, re, posixpath, copy
 import tempfile, zlib, shutil
-# On python2.4 you have to import these by name or they fail to
-# load. This was not a problem on Python 2.7.
-import email.Generator
-import email.Parser
 
 from i18n import _
 from node import hex, short