Skip to content

Commit 3c4dec0

Browse files
committed
Fix variable shadowing
1 parent ad622a3 commit 3c4dec0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ def close(registry, filename, private=True):
154154
exception('Exception instantiating default for %s:' %
155155
value._name)
156156
try:
157-
lines = iter(textwrap.wrap(str(x)))
158-
lines.append('# Default value: %s\n' % next(lines))
159-
for line in lines:
157+
lines_ = iter(textwrap.wrap(str(x)))
158+
lines_.append('# Default value: %s\n' % next(lines_))
159+
for line in lines_:
160160
lines.append('# %s\n' % line)
161161
except Exception:
162162
exception('Exception printing default value of %s:' %

0 commit comments

Comments
 (0)