MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / _svg

Method _svg

qrcode/image/svg.py:143–147  ·  view source on GitHub ↗
(self, viewBox=None, **kwargs)

Source from the content-addressed store, hash-verified

141 super().__init__(*args, **kwargs)
142
143 def _svg(self, viewBox=None, **kwargs):
144 if viewBox is None:
145 dimension = self.units(self.pixel_size, text=False)
146 viewBox = "0 0 {d} {d}".format(d=dimension)
147 return super()._svg(viewBox=viewBox, **kwargs)
148
149 def process(self):
150 # Store the path just in case someone wants to use it again or in some

Callers

nothing calls this directly

Calls 2

unitsMethod · 0.80
_svgMethod · 0.45

Tested by

no test coverage detected