Remove an except block targetting Python 3.1.

This commit is contained in:
Emmanuel Gil Peyrot 2016-08-29 09:21:49 +01:00
parent 680a3e8d44
commit 8eb7daad3a

View file

@ -159,10 +159,7 @@ class Config(RawConfigParser):
self.default = default
def read_file(self):
try:
RawConfigParser.read(self, self.file_name, encoding='utf-8')
except TypeError: # python < 3.2 sucks
RawConfigParser.read(self, self.file_name)
RawConfigParser.read(self, self.file_name, encoding='utf-8')
# Check config integrity and fix it if its wrong
# only when the object is the main config
if self.__class__ is Config: