Skip to content

Commit 08b8f76

Browse files
author
Hugo Osvaldo Barrera
committed
Avoid shadowing variable inside for loop
1 parent 14598a7 commit 08b8f76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

barcode/writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def render(self, code):
283283
ypos += pt2mm(self.font_size)
284284

285285
blocks = self.text
286-
for (text, xpos) in zip(blocks, text["xpos"]):
287-
self.text = text
286+
for (text_, xpos) in zip(blocks, text["xpos"]):
287+
self.text = text_
288288
self._callbacks["paint_text"](xpos, ypos)
289289

290290
return self._callbacks["finish"]()

0 commit comments

Comments
 (0)