MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / call_fxn

Function call_fxn

tools/python-3.11.9-amd64/Tools/scripts/patchcheck.py:40–50  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

38 """Decorator to output status info to stdout."""
39 def decorated_fxn(fxn):
40 def call_fxn(*args, **kwargs):
41 sys.stdout.write(message + ' ... ')
42 sys.stdout.flush()
43 result = fxn(*args, **kwargs)
44 if not modal and not info:
45 print("done")
46 elif info:
47 print(info(result))
48 else:
49 print("yes" if result else "NO")
50 return result
51 return call_fxn
52 return decorated_fxn
53

Callers

nothing calls this directly

Calls 4

printFunction · 0.50
infoFunction · 0.50
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected