Skip to content

Commit

Permalink
Merge pull request lincolnloop#289 from paulo-raca/qrcode_modules_attr
Browse files Browse the repository at this point in the history
Do not add "qrcode_modules" attribute in svg image
Fixes lincolnloop#290
  • Loading branch information
SmileyChris committed Nov 14, 2022
2 parents 0931cac + ef77bc5 commit 49e727f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrcode/image/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __init__(self, border, width, box_size, *args, **kwargs):
self.width = width
self.box_size = box_size
self.pixel_size = (self.width + self.border * 2) * self.box_size
self.modules = kwargs.pop("qrcode_modules")
self._img = self.new_image(**kwargs)
self.modules = kwargs["qrcode_modules"]
self.init_new_image()

@abc.abstractmethod
Expand Down

0 comments on commit 49e727f

Please sign in to comment.