diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-14 12:40:25 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-14 12:40:25 -0400 |
commit | 82bca5a760c43fc178123d93fc8998fe20f2b92e (patch) | |
tree | ba6b32301a440564fb1cebbd4f6bfcb2d0f040ee /coverage/config.py | |
parent | 442e241718e20d22eefd9e02ac747bd2f0118dcc (diff) | |
download | python-coveragepy-git-82bca5a760c43fc178123d93fc8998fe20f2b92e.tar.gz |
refactor: remove unused encoding parameter
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/config.py b/coverage/config.py index 7ef7e7ae..e519fc62 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -35,11 +35,11 @@ class HandyConfigParser(configparser.RawConfigParser): if our_file: self.section_prefixes.append("") - def read(self, filenames, encoding=None): + def read(self, filenames): """Read a file name as UTF-8 configuration data.""" kwargs = {} if env.PYVERSION >= (3, 2): - kwargs['encoding'] = encoding or "utf-8" + kwargs['encoding'] = "utf-8" return configparser.RawConfigParser.read(self, filenames, **kwargs) def has_option(self, section, option): |