[New-bugs-announce] [issue24171] httplib

JitterMan report at bugs.python.org
Tue May 12 21:23:59 CEST 2015

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list