mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-10-23 03:26:59 +09:00
Three recipes use f-string syntax that is only valid on Python 3.12+ (PEP 701): reusing the same quote character inside an f-string expression, and using a backslash inside one. recipes/amnezia-xray-bindings/conanfile.py:115 recipes/tun2socks/conanfile.py:118 recipes/hev-socks5-tunnel/conanfile.py:63-65 On older interpreters Conan fails to load the recipe with a SyntaxError before resolving a single dependency, so the build cannot start: SyntaxError: unexpected character after line continuation character This is not platform specific. It is invisible in CI only because ubuntu-latest ships Python 3.12+. Debian 12 (bookworm), current stable and the base for Raspberry Pi OS, ships Python 3.11. Hoist the expressions out of the f-strings, and use single quotes for the nested string literals. Behaviour is unchanged on every version. Verified with python3 -m py_compile on Python 3.11.2 (aarch64, Debian 12): all three fail before this change and pass after.