MCPcopy Index your code
hub / github.com/clips/pattern / __init__

Method __init__

pattern/db/__init__.py:271–272  ·  view source on GitHub ↗
(self, data, type=SQLITE)

Source from the content-addressed store, hash-verified

269 See also: Database.binary().
270 """
271 def __init__(self, data, type=SQLITE):
272 self.data, self.type = str(hasattr(data, "read") and data.read() or data), type
273 def escape(self):
274 if self.type == SQLITE:
275 return str(self.data.encode("string-escape")).replace("'","''")

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected