diff options
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coverage/config.py b/coverage/config.py index 136e2976..231a2ea9 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -37,10 +37,7 @@ class HandyConfigParser(configparser.RawConfigParser): def read(self, filenames, encoding_unused=None): """Read a file name as UTF-8 configuration data.""" - kwargs = {} - if env.PYVERSION >= (3, 2): - kwargs['encoding'] = "utf-8" - return configparser.RawConfigParser.read(self, filenames, **kwargs) + return configparser.RawConfigParser.read(self, filenames, encoding="utf-8") def has_option(self, section, option): for section_prefix in self.section_prefixes: |