Remove an except block targetting Python 3.1.
This commit is contained in:
parent
680a3e8d44
commit
8eb7daad3a
1 changed files with 1 additions and 4 deletions
|
@ -159,10 +159,7 @@ class Config(RawConfigParser):
|
||||||
self.default = default
|
self.default = default
|
||||||
|
|
||||||
def read_file(self):
|
def read_file(self):
|
||||||
try:
|
RawConfigParser.read(self, self.file_name, encoding='utf-8')
|
||||||
RawConfigParser.read(self, self.file_name, encoding='utf-8')
|
|
||||||
except TypeError: # python < 3.2 sucks
|
|
||||||
RawConfigParser.read(self, self.file_name)
|
|
||||||
# Check config integrity and fix it if it’s wrong
|
# Check config integrity and fix it if it’s wrong
|
||||||
# only when the object is the main config
|
# only when the object is the main config
|
||||||
if self.__class__ is Config:
|
if self.__class__ is Config:
|
||||||
|
|
Loading…
Reference in a new issue