From 17eb99eea718191b619277754bf15e6a7554d916 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Fri, 3 Sep 2010 18:01:43 +0000 Subject: python 3 only. Fixes all EncodingError bugs :)))) --- src/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common.py') 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 @@ -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: -- cgit v1.2.3