MCPcopy
hub / github.com/celery/celery / isatty

Function isatty

celery/platforms.py:98–103  ·  view source on GitHub ↗

Return true if the process has a controlling terminal.

(fh)

Source from the content-addressed store, hash-verified

96
97
98def isatty(fh):
99 """Return true if the process has a controlling terminal."""
100 try:
101 return fh.isatty()
102 except AttributeError:
103 pass
104
105
106def pyimplementation():

Callers 3

test_isattyFunction · 0.90
on_after_initMethod · 0.90
supports_colorMethod · 0.90

Calls 1

isattyMethod · 0.80

Tested by 1

test_isattyFunction · 0.72