summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common.py b/src/common.py
index 75a0b940..dce4b382 100644
--- a/src/common.py
+++ b/src/common.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
# some functions coming from gajim sources (thanks)
## Copyright (C) 2003-2008 Yann Leboulanger <asterix AT lagaule.org>
@@ -188,7 +186,7 @@ def temp_failure_retry(func, *args, **kwargs):
while True:
try:
return func(*args, **kwargs)
- except (os.error, IOError, select.error), ex:
+ except (os.error, IOError, select.error) as ex:
if ex.errno == errno.EINTR:
continue
else: