(value, mapping=None)
| 53 | |
| 54 | |
| 55 | def escape_float(value, mapping=None): |
| 56 | s = repr(value) |
| 57 | if s in ("inf", "-inf", "nan"): |
| 58 | raise ProgrammingError(f"{s} can not be used with MySQL") |
| 59 | if "e" not in s: |
| 60 | s += "e0" |
| 61 | return s |
| 62 | |
| 63 | |
| 64 | _escape_table = [chr(x) for x in range(128)] |
nothing calls this directly
no test coverage detected