~barry/mailman/templatecache

« back to all changes in this revision

Viewing changes to src/mailman/interfaces/address.py

  • Committer: Barry Warsaw
  • Date: 2012-10-31 16:37:22 UTC
  • mfrom: (7178.1.1 work2)
  • Revision ID: barry@list.org-20121031163722-3lszhsiv9ai0akfp
 * 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

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        self.email = email
48
48
 
49
49
    def __str__(self):
50
 
        # This is a workaround for Python 2.6 support.  When self.email
51
 
        # contains non-ascii characters, this will cause unprintable output in
52
 
        # doctests.  Python 2.7 can handle it but we haven't dropped support
53
 
        # for 2.6 yet.
54
 
        return self.email.encode('us-ascii', 'backslashreplace')
 
50
        return self.email
55
51
 
56
52
 
57
53
class AddressError(MailmanError):