3.4 tryifelse bug

This commit is contained in:
rocky
2016-06-19 11:15:36 -04:00
parent 5d86a4e536
commit f8ccb8065e
4 changed files with 28 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
# Bug from 3.4 in asyncore.py
def accept():
try:
conn = 5
except TypeError:
return None
except OSError as why:
if why == 6:
raise
else:
return conn