MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / strip_space

Function strip_space

pywebio/utils.py:369–375  ·  view source on GitHub ↗

strip n spaces of every line in text

(text, n)

Source from the content-addressed store, hash-verified

367
368
369def strip_space(text, n):
370 """strip n spaces of every line in text"""
371 lines = (
372 i[n:] if (i[:n] == ' ' * n) else i
373 for i in text.splitlines()
374 )
375 return '\n'.join(lines)
376
377
378def check_dom_name_value(value, name='`name`'):

Callers 2

webio_routesFunction · 0.85
asgi_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…