diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-12 16:29:13 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-13 08:34:15 -0400 |
commit | d61d50fbabf810f8415bb9c3fe9d543ace019b66 (patch) | |
tree | db21b4eee32de7e3156cbd20252298a332b237a1 /coverage/config.py | |
parent | 672ae3ff45cac34731170dc5b5996b96b9ef6288 (diff) | |
download | python-coveragepy-git-d61d50fbabf810f8415bb9c3fe9d543ace019b66.tar.gz |
Use pylint 2.x
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 f7e1605b..30f46e58 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -31,11 +31,11 @@ class HandyConfigParser(configparser.RawConfigParser): if our_file: self.section_prefixes.append("") - def read(self, filenames): + def read(self, filenames, encoding=None): """Read a file name as UTF-8 configuration data.""" kwargs = {} if env.PYVERSION >= (3, 2): - kwargs['encoding'] = "utf-8" + kwargs['encoding'] = encoding or "utf-8" return configparser.RawConfigParser.read(self, filenames, **kwargs) def has_option(self, section, option): |