Skip to content

Commit f824d00

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3309a06 commit f824d00

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

barcode/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Barcode:
8-
98
name = ""
109

1110
digits = 0

barcode/ean.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def render(self, writer_options=None, text=None):
127127

128128

129129
class EuropeanArticleNumber13WithGuard(EuropeanArticleNumber13):
130-
131130
name = "EAN-13 with guards"
132131

133132
def __init__(self, *args, guardbar=True, **kwargs):
@@ -192,7 +191,6 @@ def get_fullcode(self):
192191

193192

194193
class EuropeanArticleNumber8WithGuard(EuropeanArticleNumber8):
195-
196194
name = "EAN-8 with guards"
197195

198196
def __init__(self, *args, guardbar=True, **kwargs):

barcode/writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def render(self, code):
275275
# Calculates the position of the text by getting the difference
276276
# between a guard end and the next start
277277
text["start"].pop(0)
278-
for (s, e) in zip(text["start"], text["end"]):
278+
for s, e in zip(text["start"], text["end"]):
279279
text["xpos"].append(e + (s - e) / 2)
280280

281281
# The last text block is always put after the last guard end
@@ -287,7 +287,7 @@ def render(self, code):
287287
ypos += pt2mm(self.font_size)
288288

289289
blocks = self.text
290-
for (text_, xpos) in zip(blocks, text["xpos"]):
290+
for text_, xpos in zip(blocks, text["xpos"]):
291291
self.text = text_
292292
self._callbacks["paint_text"](xpos, ypos)
293293

0 commit comments

Comments
 (0)