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

Method clear

qrcode/main.py:123–130  ·  view source on GitHub ↗

Reset the internal data.

(self)

Source from the content-addressed store, hash-verified

121 self._mask_pattern = pattern
122
123 def clear(self):
124 """
125 Reset the internal data.
126 """
127 self.modules = [[]]
128 self.modules_count = 0
129 self.data_cache = None
130 self.data_list = []
131
132 def add_data(self, data, optimize=20):
133 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected