summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-29 09:21:49 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-29 09:21:49 +0100
commit8eb7daad3a458f09840ed02432ca356dee5ab924 (patch)
tree3a4ea17ac4ebb7a36521df9e0d97db4c14ecd950 /poezio
parent680a3e8d44623a4571c85d78e42d3c55f758f6fd (diff)
downloadpoezio-8eb7daad3a458f09840ed02432ca356dee5ab924.tar.gz
poezio-8eb7daad3a458f09840ed02432ca356dee5ab924.tar.bz2
poezio-8eb7daad3a458f09840ed02432ca356dee5ab924.tar.xz
poezio-8eb7daad3a458f09840ed02432ca356dee5ab924.zip
Remove an except block targetting Python 3.1.
Diffstat (limited to 'poezio')
-rw-r--r--poezio/config.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/poezio/config.py b/poezio/config.py
index 91e82268..15380b8b 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -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 it’s wrong
# only when the object is the main config
if self.__class__ is Config: