summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib/error.py')
-rw-r--r--Lib/urllib/error.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/urllib/error.py b/Lib/urllib/error.py
index c1dfc40..b712ebb 100644
--- a/Lib/urllib/error.py
+++ b/Lib/urllib/error.py
@@ -61,6 +61,10 @@ class HTTPError(URLError, urllib.response.addinfourl):
def reason(self):
return self.msg
+ def info(self):
+ return self.hdrs
+
+
# exception raised when downloaded size does not match content-length
class ContentTooShortError(URLError):
def __init__(self, message, content):