]> git.ipfire.org Git - thirdparty/tornado.git/commit
Make HTTPError (both of them) copyable.
authorBen Darnell <ben@bendarnell.com>
Mon, 28 Sep 2015 00:55:09 +0000 (20:55 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 28 Sep 2015 00:57:11 +0000 (20:57 -0400)
commitf075f2e9002eff539bb5b56742ee341b89940211
tree6f43cf39f2c373c4e2cdb312c813ca9c57e0d415
parent61f7d1047fd34d33fa70297cae646dc6dc6f9023
Make HTTPError (both of them) copyable.

`Exception.__reduce__` causes copy.copy() to create a new argument
with the arguments from `Exception.__init__`, then overwrite
attributes from the original `__dict__`. This means that copying fails
if there are mandatory arguments that are not passed to `__init__`.

Fixes #1485
tornado/httpclient.py
tornado/test/httpclient_test.py
tornado/test/web_test.py
tornado/web.py