diff --git a/test/bytecode_3.6/06_try_return.pyc b/test/bytecode_3.6/06_try_return.pyc new file mode 100644 index 00000000..1a3bb441 Binary files /dev/null and b/test/bytecode_3.6/06_try_return.pyc differ diff --git a/uncompyle6/semantics/customize.py b/uncompyle6/semantics/customize.py index c30def1f..d85a24f1 100644 --- a/uncompyle6/semantics/customize.py +++ b/uncompyle6/semantics/customize.py @@ -420,6 +420,7 @@ def customize_for_version(self, is_pypy, version): 'fstring_multi': ( "f'''%c'''", 0), 'func_args36': ( "%c(**", 0), 'try_except36': ( '%|try:\n%+%c%-%c\n\n', 1, 2 ), + 'except_return': ( '%|except:\n%+%c%-', 3 ), 'unpack_list': ( '*%c', (0, 'list') ), 'call_ex' : ( '%c(%p)',