MCPcopy Create free account
hub / github.com/ipython/ipython / needs_sqlite

Function needs_sqlite

IPython/core/history.py:53–58  ·  view source on GitHub ↗

Decorator: return an empty list in the absence of sqlite.

(f, self, *a, **kw)

Source from the content-addressed store, hash-verified

51
52@decorator
53def needs_sqlite(f, self, *a, **kw):
54 """Decorator: return an empty list in the absence of sqlite."""
55 if sqlite3 is None or not self.enabled:
56 return []
57 else:
58 return f(self, *a, **kw)
59
60
61if sqlite3 is not None:

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected