diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-21 22:50:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-21 22:50:04 (GMT) |
commit | 11dbfd41957b3602d3adcbe24108b508c4a71356 (patch) | |
tree | 13a432c8d79045b3aea5a1dab7c1f80d379c1f94 /Lib/http | |
parent | f61ff6d792c5490d5700651800a9ec733297acac (diff) | |
download | cpython-11dbfd41957b3602d3adcbe24108b508c4a71356.zip cpython-11dbfd41957b3602d3adcbe24108b508c4a71356.tar.gz cpython-11dbfd41957b3602d3adcbe24108b508c4a71356.tar.bz2 |
Merged revisions 78417 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78417 | dirkjan.ochtman | 2010-02-23 22:49:00 -0600 (Tue, 23 Feb 2010) | 1 line
Issue #7427: improve the representation of httplib.BadStatusLine exceptions.
........
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index d35f245..b9246fd 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -1121,6 +1121,8 @@ class ResponseNotReady(ImproperConnectionState): class BadStatusLine(HTTPException): def __init__(self, line): + if not line: + line = repr(line) self.args = line, self.line = line |