lines were being masked instead of modified in-place;

copy the result to the iterator
This commit is contained in:
Patrick Parker 2007-09-18 21:01:14 +00:00
parent 63763198dc
commit 7927dfa789

View file

@ -735,6 +735,7 @@ def hack_syntax(filename, lines):
if radius_danger:
lines = lines[:startline] + [wspace + "[and]\n"] + to_indent +[
wspace + "[/and]\n"] + no_indent + lines[scopeIter.lineno:]
radius_pos.lines = lines
modcount += 1
#backup to rescan
radius_pos.seek(startline-1)