[issue42279] replacements function corrupts file
Zachary Ware
report at bugs.python.org
Fri Nov 6 14:07:09 EST 2020
Zachary Ware <zachary.ware at gmail.com> added the comment:
That's because you're writing an output line once per replacement rather than once per input line.
For usage questions such as this, you'll be better off on a forum such as discuss.python.org, the python-list at python.org mailing list, or the Python Discord community (pythondiscord.com).
----------
assignee: terry.reedy ->
nosy: +zach.ware
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42279>
_______________________________________
More information about the Python-bugs-list
mailing list