Raise an exception if any component of a VUID anchor name is illegal.
(anchor)
| 15 | |
| 16 | |
| 17 | def _checkAnchorComponents(anchor): |
| 18 | """Raise an exception if any component of a VUID anchor name is illegal.""" |
| 19 | if anchor: |
| 20 | # Any other invalid things in an anchor name should be detected here. |
| 21 | if any((' ' in anchor_part for anchor_part in anchor)): |
| 22 | raise RuntimeError("Illegal component of a VUID anchor name!") |
| 23 | |
| 24 | |
| 25 | def _fix_a_vs_an(s): |
no outgoing calls
no test coverage detected