diff --git a/HISTORY.md b/HISTORY.md index 617c4d45..1e9bdf99 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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+ while, handling Python bytecodes from Python versions 2.5+ and 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 decompiling (uncompyle6). diff --git a/test/simple_source/bug33/01_if_try_except.py b/test/simple_source/bug33/01_if_try_except.py new file mode 100644 index 00000000..22308e7c --- /dev/null +++ b/test/simple_source/bug33/01_if_try_except.py @@ -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