Message191952
for line in fileinput.input(files,inplace,backup,"rU"):
File "/usr/lib/python2.7/fileinput.py", line 253, in next
line = self.readline()
File "/usr/lib/python2.7/fileinput.py", line 346, in readline
self._buffer = self._file.readlines(self._bufsize)
TypeError: an integer is required
According to the documentation, my code was correct. But somewhere along the line, someone added a 'bufsize' parameter and didn't update the docstrings.
It's an easy fix, but I'll have to investigate when this broke. |
|
Date |
User |
Action |
Args |
2013-06-27 15:59:58 | Terrel.Shumway | set | recipients:
+ Terrel.Shumway, docs@python |
2013-06-27 15:59:58 | Terrel.Shumway | set | messageid: <1372348798.45.0.272594255655.issue18315@psf.upfronthosting.co.za> |
2013-06-27 15:59:58 | Terrel.Shumway | link | issue18315 messages |
2013-06-27 15:59:58 | Terrel.Shumway | create | |
|