commit | d389cb5bcf890c327154f79240aacc41c5174722 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Tue Sep 21 01:38:15 2010 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Tue Sep 21 01:38:15 2010 +0000 |
tree | 0401713f9fcd5029a446df33ca052cf350c25b70 | |
parent | a6166dac9452140fd76f4f94f8d0334719d78641 [diff] [blame] |
Fix Issue1327971: HTTPResponse should expose a proper fileno attribute
diff --git a/Lib/httplib.py b/Lib/httplib.py index b1452f4..2f0356e 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -639,6 +639,9 @@ amt -= len(chunk) return ''.join(s) + def fileno(self): + return self.fp.fileno() + def getheader(self, name, default=None): if self.msg is None: raise ResponseNotReady()