Commit c8797af
committed
cqltypes: fix SyntaxWarning for invalid escape sequence in UDT names
In cqltype_to_python(), double-quoted UDT names containing backslashes
(e.g. '"!@#$%^&*()[]\ frozen >>>") were passed to ast.literal_eval
without escaping, producing SyntaxWarning on Python 3.12+:
SyntaxWarning: "\ " is an invalid escape sequence
Escape backslashes before wrapping the token for ast.literal_eval.
The reverse operation already exists in python_to_cqltype() at line 159.1 parent 9c53d78 commit c8797af
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments