Skip to content

Commit 09633fb

Browse files
committed
Use tomllib rather than tomli
tomllib is standard package with python 3.11.
1 parent 6fb7279 commit 09633fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/sconsUtils/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ def runPythonLinter(self):
317317

318318
pyproject = os.path.join(root, "pyproject.toml")
319319
if os.path.exists(pyproject):
320-
import tomli
320+
import tomllib
321321

322322
with open(pyproject) as fh:
323323
try:
324-
parsed = tomli.loads(fh.read())
324+
parsed = tomllib.loads(fh.read())
325325
except Exception:
326326
pass
327327
else:

0 commit comments

Comments
 (0)