MCPcopy Index your code
hub / github.com/python/cpython / separator

Function separator

Platforms/WASI/_build.py:47–57  ·  view source on GitHub ↗

Print a separator line across the terminal width.

()

Source from the content-addressed store, hash-verified

45
46
47def separator():
48 """Print a separator line across the terminal width."""
49 try:
50 tput_output = subprocess.check_output(
51 ["tput", "cols"], encoding="utf-8"
52 )
53 except subprocess.CalledProcessError:
54 terminal_width = 80
55 else:
56 terminal_width = int(tput_output.strip())
57 print("⎯" * terminal_width)
58
59
60def log(emoji, message, *, spacing=None):

Callers 1

wrapperFunction · 0.85

Calls 2

check_outputMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…