diff options
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 7876052b..6d336d1f 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -72,7 +72,7 @@ class HandyConfigParser(configparser.RawConfigParser): d[opt] = self.get(section, opt) return d - def get(self, section, option, *args, **kwargs): # pylint: disable=arguments-differ + def get(self, section, option, *args, **kwargs): """Get a value, replacing environment variables also. The arguments are the same as `RawConfigParser.get`, but in the found @@ -325,7 +325,7 @@ class CoverageConfig(object): if used: self.config_file = os.path.abspath(filename) - with open(filename) as f: + with open(filename, "rb") as f: self._config_contents = f.read() return used |