python-modernize -f lib2to3.fixes.fix_except
This commit is contained in:
parent
b1da150c01
commit
1220008f8f
14 changed files with 66 additions and 66 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue