(name: str)
| 29 | |
| 30 | |
| 31 | def remove_bad_char(name: str) -> str: |
| 32 | bad_chars = [';', ':', '!', "*", ' ', '+'] |
| 33 | for c in bad_chars: |
| 34 | name = name.replace(c, '_') |
| 35 | bad_chars = ['='] |
| 36 | for c in bad_chars: |
| 37 | name = name.replace(c, '-') |
| 38 | bad_chars = [',', '[', ']', '(', ')'] |
| 39 | for c in bad_chars: |
| 40 | name = name.replace(c, '') |
| 41 | return name |
| 42 | |
| 43 | |
| 44 | def compile_command( |
nothing calls this directly
no outgoing calls
no test coverage detected