Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and WhyNotHugo committed Dec 1, 2022
1 parent 869b5c2 commit 3643a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion barcode/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def calculate_size(self, modules_per_line, number_of_lines):
:rtype: Tuple
"""
width = 2 * self.quiet_zone + modules_per_line * self.module_width
height = self.margin_bottom + self.margin_top + self.module_height * number_of_lines
height = (
self.margin_bottom + self.margin_top + self.module_height * number_of_lines
)
number_of_text_lines = len(self.text.splitlines())
if self.font_size and self.text:
height += (
Expand Down

0 comments on commit 3643a65

Please sign in to comment.