MCPcopy Create free account
hub / github.com/FastLED/FastLED / has_broad_except

Function has_broad_except

ci/lint_python/keyboard_interrupt_checker.py:45–47  ·  view source on GitHub ↗

Return True if *source* contains a line that looks like a broad except.

(source: str)

Source from the content-addressed store, hash-verified

43
44
45def has_broad_except(source: str) -> bool:
46 """Return True if *source* contains a line that looks like a broad except."""
47 return _BROAD_EXCEPT_RE.search(source) is not None
48
49
50# ---------------------------------------------------------------------------

Callers 8

test_bare_exceptMethod · 0.90
test_except_exceptionMethod · 0.90
test_except_tupleMethod · 0.90
test_no_except_at_allMethod · 0.90
find_candidatesFunction · 0.85

Calls

no outgoing calls

Tested by 7

test_bare_exceptMethod · 0.72
test_except_exceptionMethod · 0.72
test_except_tupleMethod · 0.72
test_no_except_at_allMethod · 0.72