You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
grammar typo and add another test
This commit is contained in:
@@ -115,7 +115,7 @@ I started working on this late 2015, mostly to add fragment support.
|
|||||||
In that, I decided to make this runnable on Python 3.2+ and Python 2.6+
|
In that, I decided to make this runnable on Python 3.2+ and Python 2.6+
|
||||||
while, handling Python bytecodes from Python versions 2.5+ and
|
while, handling Python bytecodes from Python versions 2.5+ and
|
||||||
3.2+. In doing so, it has been expedient to separate this into three
|
3.2+. In doing so, it has been expedient to separate this into three
|
||||||
projects: load loading and disassembly (xdis), parsing and tree
|
projects: bytecode loading and disassembly (xdis), parsing and tree
|
||||||
building (spark_parser), and grammar and semantic actions for
|
building (spark_parser), and grammar and semantic actions for
|
||||||
decompiling (uncompyle6).
|
decompiling (uncompyle6).
|
||||||
|
|
||||||
|
16
test/simple_source/bug33/01_if_try_except.py
Normal file
16
test/simple_source/bug33/01_if_try_except.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# From 3.3.5 _osx_support.py
|
||||||
|
def _get_system_version():
|
||||||
|
if __file__ is None:
|
||||||
|
try:
|
||||||
|
m = 5
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
m = 10
|
||||||
|
finally:
|
||||||
|
m = 15
|
||||||
|
if m is not None:
|
||||||
|
m = 20
|
||||||
|
|
||||||
|
return m
|
Reference in New Issue
Block a user