Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1035ee9

Browse files
committed
Patch for an Issue #442
1 parent beab72a commit 1035ee9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/request/httpshandler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ def create_sock():
6262
class HTTPSHandler(urllib2.HTTPSHandler):
6363
def https_open(self, req):
6464
return self.do_open(HTTPSConnection if ssl else httplib.HTTPSConnection, req)
65+
66+
# Bug fix (http://bugs.python.org/issue17849)
67+
68+
def _(self, *args):
69+
return self._readline()
70+
71+
httplib.LineAndFileWrapper._readline = httplib.LineAndFileWrapper.readline
72+
httplib.LineAndFileWrapper.readline = _

0 commit comments

Comments
 (0)