diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-01-06 01:08:12 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-01-06 01:08:12 (GMT) |
commit | e01859fb65924c09e064254bb00e5f4d556962dc (patch) | |
tree | 00ce352236ccc891e1f9b91c47c9f7c9097c3464 /Lib/urllib2.py | |
parent | 621d7fd5839732cec2b5c23b64ed30618960ce61 (diff) | |
download | cpython-e01859fb65924c09e064254bb00e5f4d556962dc.zip cpython-e01859fb65924c09e064254bb00e5f4d556962dc.tar.gz cpython-e01859fb65924c09e064254bb00e5f4d556962dc.tar.bz2 |
Issue #6500: Reverting fbea8ff8db5e since it broke tests
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 1ae229e..9277b1d 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -251,7 +251,8 @@ class Request: if attr[:12] == '_Request__r_': name = attr[12:] if hasattr(Request, 'get_' + name): - return getattr(self, 'get_' + name)() + getattr(self, 'get_' + name)() + return getattr(self, attr) raise AttributeError, attr def get_method(self): |