diff options
Diffstat (limited to 'coverage/tomlconfig.py')
-rw-r--r-- | coverage/tomlconfig.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index d8055455..8c96fc26 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -37,9 +37,7 @@ class TomlConfigParser: # RawConfigParser takes a filename or list of filenames, but we only # ever call this with a single filename. assert isinstance(filenames, (bytes, str, os.PathLike)) - filename = filenames - if env.PYVERSION >= (3, 6): - filename = os.fspath(filename) + filename = os.fspath(filenames) try: with open(filename, encoding='utf-8') as fp: |