mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
`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
|
||
|---|---|---|
| .. | ||
| bench | ||
| deps-docker | ||
| docker | ||
| py2/queue | ||
| pyinstaller | ||
| strip_hints | ||
| test | ||
| copyparty-android.sh | ||
| copyparty-repack.sh | ||
| fusefuzz.py | ||
| genlic.sh | ||
| help2html.py | ||
| help2txt.sh | ||
| install-githooks.sh | ||
| logpack.sh | ||
| make-pypi-release.sh | ||
| make-pyz.sh | ||
| make-sfx.sh | ||
| make-tgz-release.sh | ||
| prep.sh | ||
| profile.py | ||
| rls.sh | ||
| run-tests.sh | ||
| sfx.ls | ||
| sfx.py | ||
| sfx.sh | ||
| speedtest-fs.py | ||
| toc.sh | ||
| uncomment.py | ||
| ziploader.py | ||