summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/response.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib/response.py')
-rw-r--r--Lib/urllib/response.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/urllib/response.py b/Lib/urllib/response.py
index 4778118..5a2c3cc 100644
--- a/Lib/urllib/response.py
+++ b/Lib/urllib/response.py
@@ -73,6 +73,10 @@ class addinfourl(addinfo):
self.url = url
self.code = code
+ @property
+ def status(self):
+ return self.code
+
def getcode(self):
return self.code