You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
23 lines
552 B
Python
23 lines
552 B
Python
# From python 3.4 asyncio/base_events.py
|
|
# Needs a forelselast grammar rule
|
|
|
|
def create_connection(self, infos, f2, laddr_infos, protocol):
|
|
for family in infos:
|
|
try:
|
|
if f2:
|
|
for laddr in laddr_infos:
|
|
try:
|
|
break
|
|
except OSError:
|
|
protocol = 'foo'
|
|
else:
|
|
continue
|
|
except OSError:
|
|
protocol = 'bar'
|
|
else:
|
|
break
|
|
else:
|
|
raise
|
|
|
|
return protocol
|