From 34447d63cf9b4fc0aaed21cc4963790c26d9c346 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 18 Jun 2018 00:50:47 +0000 Subject: [PATCH 48/54] Python 3 preparation: remove obsolete email module monkey patch. --- roundup/anypy/email_.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/roundup/anypy/email_.py b/roundup/anypy/email_.py index ae94793..7cc703b 100644 --- a/roundup/anypy/email_.py +++ b/roundup/anypy/email_.py @@ -4,18 +4,6 @@ import email from email import quoprimime, base64mime ## please import this file if you are using the email module -# -# a "monkey patch" to unify the behaviour of python 2.5 2.6 2.7 -# when generating header files, see http://bugs.python.org/issue1974 -# and https://hg.python.org/cpython/rev/5deb27042e5a/ -# can go away once the minimum requirement is python 2.7 -_oldheaderinit = email.Header.Header.__init__ -def _unifiedheaderinit(self, *args, **kw): - # override continuation_ws - kw['continuation_ws'] = ' ' - _oldheaderinit(self, *args, **kw) -email.Header.Header.__dict__['__init__'] = _unifiedheaderinit -## # Match encoded-word strings in the form =?charset?q?Hello_World?= ecre = re.compile(r''' -- 2.7.4