From a9464c14fc6dfc23613a1ec89446393fe6476f88 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 31 Oct 2012 17:31:12 +0100 Subject: * Python 2.7 is not required. Python 2.6 is no longer officially supported. The code base is now also `python2.7 -3` clean, although there are still some warnings in 3rd party dependencies. LP: #1073506 --- src/mailman/interfaces/address.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/mailman/interfaces/address.py') diff --git a/src/mailman/interfaces/address.py b/src/mailman/interfaces/address.py index 54bf6b283..7df15b91f 100644 --- a/src/mailman/interfaces/address.py +++ b/src/mailman/interfaces/address.py @@ -47,11 +47,7 @@ class EmailError(MailmanError): self.email = email def __str__(self): - # This is a workaround for Python 2.6 support. When self.email - # contains non-ascii characters, this will cause unprintable output in - # doctests. Python 2.7 can handle it but we haven't dropped support - # for 2.6 yet. - return self.email.encode('us-ascii', 'backslashreplace') + return self.email class AddressError(MailmanError): -- cgit v1.2.3-70-g09d2