Skip to content

Commit 1118aa2

Browse files
committed
jedi: Fallback to tomllib backport.
1 parent 32ff42d commit 1118aa2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

jedi/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
import shutil
88
import subprocess
99
import sys
10-
import tomllib
1110
import zipfile
1211

12+
try:
13+
import tomllib
14+
except ImportError:
15+
import tomli as tomllib # type: ignore[no-redef]
16+
1317
if len(sys.argv) != 2:
1418
print(f"Usage: {sys.argv[0]} <version>", file=sys.stderr)
1519
sys.exit(1)

0 commit comments

Comments
 (0)