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.
........
This commit is contained in:
Benjamin Peterson 2010-03-21 22:50:04 +00:00
parent f61ff6d792
commit 11dbfd4195
2 changed files with 6 additions and 0 deletions

View file

@ -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