python-modernize -f lib2to3.fixes.fix_except . -w

This commit is contained in:
Tomas Kopecek 2017-10-31 16:03:37 +01:00
parent 2e0b962274
commit d6a5cdf987
5 changed files with 18 additions and 18 deletions

View file

@ -106,7 +106,7 @@ class SSLConnection:
try:
sent = con.send(data, flags)
except SSL.SysCallError, e:
except SSL.SysCallError as e:
if e[0] == 32: # Broken Pipe
self.close()
sent = 0
@ -142,7 +142,7 @@ class SSLConnection:
return None
except SSL.WantReadError:
time.sleep(0.2)
except SSL.SysCallError, e:
except SSL.SysCallError as e:
if e.args == (-1, 'Unexpected EOF'):
break
raise