You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Improve 3.x forelselast coverage
This commit is contained in:
BIN
test/bytecode_3.1/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.1/07_forelselast.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.2/07_forelselast.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.3/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.3/07_forelselast.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.4/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.4/07_forelselast.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.5/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.5/07_forelselast.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.6/07_forelselast.pyc
Normal file
BIN
test/bytecode_3.6/07_forelselast.pyc
Normal file
Binary file not shown.
22
test/simple_source/bug31/07_forelselast.py
Normal file
22
test/simple_source/bug31/07_forelselast.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# 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
|
Reference in New Issue
Block a user