[issue24171] httplib

2015-05-12 Thread R. David Murray

R. David Murray added the comment:

This is a duplicate of issue 17849.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Missing size argument in readline() method for httplib's class 
LineAndFileWrapper
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24171] httplib

2015-05-12 Thread JitterMan

New submission from JitterMan:

In python2.7.9, httplib.py, on line 780, makes a call to:

line = response.fp.readline(_MAXLINE + 1)

This ends up calling a function defined on line 1362 in the same file:

def readline(self):

Notice the argument mismatch. The call passes two arguments, but the function 
defines only one. This can be 'fixed' by changing the definition to:

def readline(self, size=None):

--
messages: 242998
nosy: jitterman
priority: normal
severity: normal
status: open
title: httplib
type: crash
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com