Matej Cepl 2024-04-15 22:17:01 +00:00 committed by Git OBS Bridge
parent d4b42b6c18
commit 5267a1835f
2 changed files with 14 additions and 2 deletions

View File

@ -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" <to@example.com>'],
--- 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]

View File

@ -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