Return True if *source* contains a line that looks like a broad except.
(source: str)
| 43 | |
| 44 | |
| 45 | def 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 | # --------------------------------------------------------------------------- |
no outgoing calls