Sorry, I don't see any value in this kind of patch. The line "contline = += line" is broken. The "+=" transformations and else-clause eliminations trivially re-arrange code without any real savings. The "while 1" to "while True" transformation should not be done in Py2.x because the latter is much slower ("while True" requires loading a global variable and a test; in contrast, "while 1" is optimized to an unconditional jump.
History
Date
User
Action
Args
2022-04-11 14:56:35
admin
set
github: 47328
2008-06-17 13:56:34
rhettinger
set
status: open -> closedresolution: rejectedmessages: + nosy: + rhettinger