7143
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7142
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7141
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7140
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7139
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7138
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7137
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7136
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7135
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7134
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7133
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7132
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7131
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7130
|
|
|
Barry Warsaw |
3.0b1 |
12 years ago
|
|
|
7129
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7128
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7127
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7126
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|
7125
|
|
Several fixes and cleanups, ostensibly to fix Python 2.6 support.
- email.iterators.body_line_iterator() cannot handle unicodes in Python 2.6, because it uses cStringIO.StringIO under the covers, and *that* can't handle unicode. This works fine in Python 2.7, so I override this for the tests only under 2.6 (the code itself isn't affected).
- AddressError needs to str() its IAddress attribute explicitly in the __str__() method, otherwise under Python 2.6, you'll get unprintable reprs in the doctests. Again, this works correctly in 2.7, but EIBTI, so it can't hurt either way.
- EmailError: a new exception, not related to AddressError. The reason for this it to conform to current nomenclature: "address" means an IAddress while "email" means a text email address. So InvalidEmailAddressError now derives from EmailError instead of AddressError because it gets passed a text email address, and because that is invalid, it never gets turned into an IAddress. The __str__() of this new base exception class does some tricky encoding to keep it compatible between Python 2.6 and 2.7.
- UnverifiedAddressError derives from AddressError instead of the more generic MailmanError.
- A few random code cleanups are included.
|
Barry Warsaw |
|
12 years ago
|
|
|
7124
|
|
|
Barry Warsaw |
|
12 years ago
|
|
|