I noticed there were several places that use the while 1: as opposed to the: for line in fp: approach to line-reading. This patch takes care of some of them that I grep'd out.
On second thought, the change to ConfigParse should not go in. The docs currently promise that any file-like object supporting readling() will be accepted .
I also left out the changes to the ftplib and distutils functions since they also accept file objects as parameters, to keep b/w compatibility. Committed the rest as r60163.
History
Date
User
Action
Args
2022-04-11 14:56:24
admin
set
github: 45002
2008-01-21 17:22:49
georg.brandl
set
status: open -> closedassignee: georg.brandlresolution: acceptedmessages: + nosy: + georg.brandl