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

Method save

qrcode/image/pure.py:27–30  ·  view source on GitHub ↗
(self, stream, kind=None)

Source from the content-addressed store, hash-verified

25 """
26
27 def save(self, stream, kind=None):
28 if isinstance(stream, str):
29 stream = open(stream, "wb")
30 self._img.write(stream, self.rows_iter())
31
32 def rows_iter(self):
33 yield from self.border_rows_iter()

Callers

nothing calls this directly

Calls 2

rows_iterMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected