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