# HG changeset patch # User Gregory Szorc # Date 2015-06-22 17:09:08 # Node ID c99f9715cc9a18b020eeac96717281caaa99c66c # Parent 6f6c97d29a1e505ded97e24a421f7c08fcecad9a 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. diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -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