Drop an eventual E from E'' quotes
(s)
| 689 | |
| 690 | |
| 691 | def no_e(s): |
| 692 | """Drop an eventual E from E'' quotes""" |
| 693 | if isinstance(s, (memoryview, bytearray)): |
| 694 | s = bytes(s) |
| 695 | |
| 696 | if isinstance(s, str): |
| 697 | return re.sub(r"\bE'", "'", s) |
| 698 | elif isinstance(s, bytes): |
| 699 | return re.sub(rb"\bE'", b"'", s) |
| 700 | else: |
| 701 | raise TypeError(f"not dealing with {type(s).__name__}: {s}") |
no outgoing calls
no test coverage detected
searching dependent graphs…