Source: qemu
Version: 1:10.0.0+ds-2
Severity: normal

Dear Maintainer,

Since Python3.11, the new module "tomllib" from the standard library will be 
prefered.

"tomllib" is actually a copy of "tomli".

Greetings

Alexandre


python/scripts/mkvenv.py:# Try to load tomllib, with a fallback to tomli.
python/scripts/mkvenv.py-# HAVE_TOMLLIB is checked below, just-in-time, so that 
mkvenv does not fail
python/scripts/mkvenv.py-# outside the venv or before a potential call to 
ensurepip in checkpip().
python/scripts/mkvenv.py-HAVE_TOMLLIB = True
python/scripts/mkvenv.py-try:
python/scripts/mkvenv.py-    import tomllib
python/scripts/mkvenv.py-except ImportError:
python/scripts/mkvenv.py-    try:
python/scripts/mkvenv.py:        import tomli as tomllib
python/scripts/mkvenv.py-    except ImportError:
python/scripts/mkvenv.py-        HAVE_TOMLLIB = False

Reply via email to