diff --git a/bsc1222537-py2-email-addr-parse.patch b/bsc1222537-py2-email-addr-parse.patch index 91ffe78..a02130c 100644 --- a/bsc1222537-py2-email-addr-parse.patch +++ b/bsc1222537-py2-email-addr-parse.patch @@ -1,6 +1,7 @@ --- Lib/email/test/test_email.py | 7 +++++++ - 1 file changed, 7 insertions(+) + Lib/email/utils.py | 2 +- + 2 files changed, 8 insertions(+), 1 deletion(-) --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -18,3 +19,14 @@ def test_getaddresses_nasty(self): for addresses, expected in ( ([u'"Sürname, Firstname" '], +--- a/Lib/email/utils.py ++++ b/Lib/email/utils.py +@@ -307,7 +307,7 @@ def parseaddr(addr, strict=True): + if isinstance(addr, list): + addr = addr[0] + +- if not isinstance(addr, str): ++ if not isinstance(addr, basestring): + return ('', '') + + addr = _pre_parse_validation([addr])[0] diff --git a/python-base.spec b/python-base.spec index 59a626a..144b4ec 100644 --- a/python-base.spec +++ b/python-base.spec @@ -19,7 +19,7 @@ %define so_version 2_7-1_0 # We really don't care about quality of this package anymore, it # will be soon gone (bsc#1219306). -%bcond_with tests +%bcond_without tests Name: python-base Version: 2.7.18