File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# TOML support is an install-time extra option.
14
14
try :
15
- import toml
15
+ import tomli
16
16
except ImportError : # pragma: not covered
17
- toml = None
17
+ tomli = None
18
18
19
19
20
20
class TomlDecodeError (Exception ):
@@ -44,11 +44,11 @@ def read(self, filenames):
44
44
toml_text = fp .read ()
45
45
except OSError :
46
46
return []
47
- if toml :
47
+ if tomli is not None :
48
48
toml_text = substitute_variables (toml_text , os .environ )
49
49
try :
50
- self .data = toml .loads (toml_text )
51
- except toml .TomlDecodeError as err :
50
+ self .data = tomli .loads (toml_text )
51
+ except tomli .TomlDecodeError as err :
52
52
raise TomlDecodeError (* err .args )
53
53
return [filename ]
54
54
else :
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def better_set_verbosity(v):
107
107
108
108
extras_require = {
109
109
# Enable pyproject.toml support.
110
- 'toml' : ['toml ' ],
110
+ 'toml' : ['tomli ' ],
111
111
},
112
112
113
113
# We need to get HTML assets from our htmlfiles directory.
You can’t perform that action at this time.
0 commit comments