Skip to content

Commit ca049df

Browse files
author
j
committed
Comply with use of "ruff", which unfortunately makes some of the code less readable, but oh well.
1 parent fdc5ef8 commit ca049df

3 files changed

Lines changed: 201 additions & 170 deletions

File tree

qrcode/console_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def main(args=None):
4747
try:
4848
version = metadata.version("qrcode")
4949
except metadata.PackageNotFoundError:
50-
version = 'development'
50+
version = "development"
5151

5252
parser = optparse.OptionParser(usage=(__doc__ or "").strip(), version=version)
5353

qrcode/image/styles/moduledrawers/svg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ def drawrect(self, box, is_active: bool):
119119
y0 = self.img.units(coords.y0, text=False)
120120
assert self.img.units(coords.x1, text=False) - 1 == x0
121121
assert self.img.units(coords.y1, text=False) - 1 == y0
122-
self.img._points.append([int(x0),int(y0)])
123-
122+
self.img._points.append([int(x0), int(y0)])
124123

125124

126125
class SvgPathSquareDrawer(SvgPathQRModuleDrawer):

0 commit comments

Comments
 (0)