Running python single_plot.py, then accessing the plot page in Chromium, I get
an exception that readline was given 2 arguments but expected just 1.
The file interface specifies that readline() should accept an optional 'size'
argument, which is actually used by BaseHTTPServer.
I'm using python 2.7, in a fresh install of Kubuntu Natty.
The fix is just to modify memorizingfile.py:68 to add size:
def readline(self,size=None):
"""Override file.readline and memorize the line read."""
line = self._file.readline(size=size)
if line and len(self._memorized_lines) < self._max_memorized_lines:
self._memorized_lines.append(line)
return line
Original issue reported on code.google.com by RustyCh...@gmail.com on 9 May 2011 at 1:14
Original issue reported on code.google.com by
RustyCh...@gmail.com
on 9 May 2011 at 1:14