Remove quotes from around a string.
(string: str)
| 175 | |
| 176 | |
| 177 | def dequote(string: str) -> str: |
| 178 | """Remove quotes from around a string.""" |
| 179 | if ((string.startswith('"') and string.endswith('"')) or |
| 180 | (string.startswith("'") and string.endswith("'"))): |
| 181 | return string[1:-1] |
| 182 | else: |
| 183 | return string |
| 184 | |
| 185 | |
| 186 | class EmStrongItem(NamedTuple): |
no outgoing calls
no test coverage detected
searching dependent graphs…