]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#7484: simplify quoteaddr: if parseaddr throws an error it is a bug.
authorR David Murray <rdmurray@bitdance.com>
Tue, 19 Jul 2011 01:59:53 +0000 (21:59 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 19 Jul 2011 01:59:53 +0000 (21:59 -0400)
commit4c14bba7f9a97f3ea5d2f89eeeeb518464971f23
tree62ebf320f24bad2cb9cd550bdd8703c6fb2da00e
parentda7af4d7a1866d53d50ad5253bf189e1b752cb04
#7484: simplify quoteaddr: if parseaddr throws an error it is a bug.

As far as I can tell, the try/except was ancient code, from before the email
package rewrite where the philosophy of never throwing parsing errors was
adopted.
Lib/smtplib.py