diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-21 01:38:15 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-21 01:38:15 (GMT) |
commit | d389cb5bcf890c327154f79240aacc41c5174722 (patch) | |
tree | 0401713f9fcd5029a446df33ca052cf350c25b70 /Lib/httplib.py | |
parent | a6166dac9452140fd76f4f94f8d0334719d78641 (diff) | |
download | cpython-d389cb5bcf890c327154f79240aacc41c5174722.zip cpython-d389cb5bcf890c327154f79240aacc41c5174722.tar.gz cpython-d389cb5bcf890c327154f79240aacc41c5174722.tar.bz2 |
Fix Issue1327971: HTTPResponse should expose a proper fileno attribute
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ class HTTPResponse: 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() |