diff options
Diffstat (limited to 'Lib/urllib/response.py')
-rw-r--r-- | Lib/urllib/response.py | 4 |
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 |