diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 19:25:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:20 -0400 |
commit | c6ba56c68b2a3850f530cc1fdbf9856a90559a1f (patch) | |
tree | 4b2fd9dd4139a5d9ed233ca2da8f1c4952103b39 /coverage/tomlconfig.py | |
parent | d2dad79e0d0611eb519995bd8696f1ada2bcd2cd (diff) | |
download | python-coveragepy-git-c6ba56c68b2a3850f530cc1fdbf9856a90559a1f.tar.gz |
refactor: remove a few more version checks
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: |