This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Terrel.Shumway
Recipients Terrel.Shumway, docs@python
Date 2013-06-27.15:59:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372348798.45.0.272594255655.issue18315@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-06-27 15:59:58Terrel.Shumwaysetrecipients: + Terrel.Shumway, docs@python
2013-06-27 15:59:58Terrel.Shumwaysetmessageid: <1372348798.45.0.272594255655.issue18315@psf.upfronthosting.co.za>
2013-06-27 15:59:58Terrel.Shumwaylinkissue18315 messages
2013-06-27 15:59:58Terrel.Shumwaycreate