Skip to content

Commit 2a2121b

Browse files
committed
installer: avoid shadowing variable while iterating on it
Issue raised by type checkers. Signed-off-by: Yann Dirson <[email protected]>
1 parent f3125fa commit 2a2121b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def _defn_to_xml_et(defn, /, *, parent=None):
7373
if isinstance(contents, str):
7474
element.text = contents
7575
else:
76-
for contents in contents:
77-
AnswerFile._defn_to_xml_et(contents, parent=element)
76+
for content in contents:
77+
AnswerFile._defn_to_xml_et(content, parent=element)
7878
return element
7979

8080
def poweroff(ip):

0 commit comments

Comments
 (0)