MCPcopy
hub / github.com/apenwarr/redo / meta

Function meta

redo/logs.py:129–136  ·  view source on GitHub ↗
(kind, s, pid=None)

Source from the content-addressed store, hash-verified

127
128
129def meta(kind, s, pid=None):
130 assert ':' not in kind
131 assert '@' not in kind
132 assert '\n' not in s
133 if pid is None:
134 pid = os.getpid()
135 write('@@REDO:%s:%d:%.4f@@ %s'
136 % (kind, pid, time.time(), s))
137
138def err(s):
139 s = s.rstrip()

Callers 10

startMethod · 0.85
_start_selfMethod · 0.85
_start_deps_unlockedMethod · 0.85
_record_new_stateMethod · 0.85
runFunction · 0.85
errFunction · 0.85
warnFunction · 0.85
debugFunction · 0.85
debug2Function · 0.85
debug3Function · 0.85

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected