From c327bec6c8091815c4878f1270893ae8aa1e7ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=C5=BBarnowiecki?= Date: Sun, 8 May 2016 15:10:57 +0200 Subject: [PATCH] Convert except X,T to except X as T MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Łukasz Żarnowiecki Signed-off-by: Nicolas Sebrecht --- offlineimap/imaplibutil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py index 9b1095b..fc48000 100644 --- a/offlineimap/imaplibutil.py +++ b/offlineimap/imaplibutil.py @@ -79,19 +79,19 @@ class UsefulIMAPMixIn(object): try: # use socket of our own, possiblly socksified socket. s = self.socket(af, socktype, proto) - except socket.error, msg: + except socket.error as msg: continue try: for i in (0, 1): try: s.connect(sa) break - except socket.error, msg: + except socket.error as msg: if len(msg.args) < 2 or msg.args[0] != errno.EINTR: raise else: raise socket.error(msg) - except socket.error, msg: + except socket.error as msg: s.close() continue break