lines were being masked instead of modified in-place;
copy the result to the iterator
This commit is contained in:
parent
63763198dc
commit
7927dfa789
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue