mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 13:20:14 +02:00
bce854928d
If a port enables t-strings then it is required to have the `string.templatelib` package (at least to run the tests). That's automatically the case if `MICROPY_PY_TSTRINGS` is enabled. If a port freezes in the micropython-lib `string` extension package then the latest version of this package will include the built-in `string.templatelib` classes. So the feature check for t-strings no longer needs to check if they are available. Signed-off-by: Damien George <damien@micropython.org>
6 lines
87 B
Python
6 lines
87 B
Python
# check whether t-strings (PEP-750) are supported
|
|
|
|
a = 1
|
|
t = t"a={a}"
|
|
print("tstring")
|