Skip to content

Commit 965af23

Browse files
committed
Rename value to avoid masking variable.
1 parent fc03481 commit 965af23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setuptools/config/setupcfg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def __setitem__(self, option_name, value):
297297
parser = self.parsers.get(option_name)
298298
if parser:
299299
try:
300-
value = parser(value)
300+
parsed = parser(value)
301301

302302
except Exception:
303303
skip_option = True
@@ -309,9 +309,9 @@ def __setitem__(self, option_name, value):
309309

310310
setter = getattr(target_obj, 'set_%s' % option_name, None)
311311
if setter is None:
312-
setattr(target_obj, option_name, value)
312+
setattr(target_obj, option_name, parsed)
313313
else:
314-
setter(value)
314+
setter(parsed)
315315

316316
self.set_options.append(option_name)
317317

0 commit comments

Comments
 (0)