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.
pyproject.toml
1 parent 809cccb commit c57e408Copy full SHA for c57e408
coverage/tomlconfig.py
@@ -12,9 +12,9 @@
12
13
# TOML support is an install-time extra option.
14
try:
15
- import toml
+ import tomli
16
except ImportError: # pragma: not covered
17
- toml = None
+ tomli = None
18
19
20
class TomlDecodeError(Exception):
@@ -44,11 +44,11 @@ def read(self, filenames):
44
toml_text = fp.read()
45
except OSError:
46
return []
47
- if toml:
+ if tomli is not None:
48
toml_text = substitute_variables(toml_text, os.environ)
49
50
- self.data = toml.loads(toml_text)
51
- except toml.TomlDecodeError as err:
+ self.data = tomli.loads(toml_text)
+ except tomli.TomlDecodeError as err:
52
raise TomlDecodeError(*err.args)
53
return [filename]
54
else:
0 commit comments