We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207249b commit e7d4aedCopy full SHA for e7d4aed
1 file changed
cpp_linter_hooks/util.py
@@ -5,9 +5,9 @@
5
import logging
6
from typing import Optional, List
7
8
-try:
+if sys.version_info >= (3, 11):
9
import tomllib
10
-except ModuleNotFoundError:
+else:
11
import tomli as tomllib
12
13
from cpp_linter_hooks.versions import CLANG_FORMAT_VERSIONS, CLANG_TIDY_VERSIONS
0 commit comments