diff options
Diffstat (limited to 'coverage/tomlconfig.py')
-rw-r--r-- | coverage/tomlconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index 144b13ca..33647309 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -8,7 +8,7 @@ import os import re from coverage import env -from coverage.backward import configparser, path_types, toml +from coverage.backward import configparser, path_types from coverage.misc import CoverageException, substitute_variables @@ -32,6 +32,7 @@ class TomlConfigParser: self._data = [] def read(self, filenames): + from coverage.optional import toml if toml is None: raise RuntimeError('toml module is not installed.') |