From f52b43321aad4c8e50bafbfbe95f1e7e570b4b8d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 10 Nov 2012 15:19:09 -0500 Subject: Upgrading pylint means fixing more nits. --- coverage/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index 7a6afe4d..7cac4ac0 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -15,10 +15,10 @@ class HandyConfigParser(configparser.ConfigParser): def read(self, filename): """Read a filename as UTF-8 configuration data.""" + kwargs = {} if sys.version_info >= (3, 2): - super().read(filename, encoding="utf-8") - else: - configparser.ConfigParser.read(self, filename) + kwargs['encoding'] = "utf-8" + configparser.ConfigParser.read(self, filename, **kwargs) def getlist(self, section, option): """Read a list of strings. -- cgit v1.2.1