summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-01-06 01:08:12 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-01-06 01:08:12 (GMT)
commite01859fb65924c09e064254bb00e5f4d556962dc (patch)
tree00ce352236ccc891e1f9b91c47c9f7c9097c3464 /Lib/urllib2.py
parent621d7fd5839732cec2b5c23b64ed30618960ce61 (diff)
downloadcpython-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.py3
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):