Files
copyparty/scripts
ed 2d6eb63fce scripts/uncomment: python 3.12 support;
`tokenize.FSTRING_MIDDLE` was introduced, changing the
representation of `f"x{{y"` from `STRING(f"x{{y")` to:

* `FSTRING_START('f"')`
* `FSTRING_MIDDLE('x{')`
* `FSTRING_MIDDLE('y')`
* `FSTRING_END('"')`

each literal `{` (encoded as `{{` in the input) now appears as a
single `{` as the final character of its `FSTRING_MIDDLE`, with
additional consecutive `FSTRING_MIDDLE` tokens if necessary

regular interpolating `{` are encoded as separate `OP` tokens

the fact that the literal `{` is encoded as a single `{` instead
of `{{` breaks the assumption that the string-value of each token
maps directly to the original code

fix this by replacing `{` with `{{` and `}` with `}}` in
`FSTRING_MIDDLE` tokens, and not adding whitespace after
`FSTRING_MIDDLE` tokens
2024-08-12 19:55:17 +00:00
..
2024-01-06 01:15:43 +00:00
2024-07-15 21:16:19 +00:00
2022-08-03 19:42:42 +02:00
2024-06-18 12:01:48 +02:00
2020-05-06 00:11:36 +02:00
2022-11-26 19:53:41 +00:00
2022-11-28 21:38:50 +00:00
2024-07-17 23:06:01 +00:00
2021-06-01 05:49:41 +02:00
2024-01-06 01:15:43 +00:00
2024-02-15 00:00:41 +00:00
2024-04-24 23:45:01 +00:00
2023-05-07 18:34:39 +00:00
2023-05-05 20:51:18 +00:00
2022-08-03 22:33:20 +02:00
2024-04-24 23:45:01 +00:00
2024-04-25 22:25:38 +00:00
2022-06-16 01:07:15 +02:00
2021-09-16 00:28:38 +02:00
2023-06-25 21:50:33 +00:00