From 2126e4cf328518ee7572ee42e3542f0a5d3832fd Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 19 Jan 2018 03:15:08 -0500 Subject: [PATCH] Fix bug in 3.5+ async stmt .. and in verification status message --- __pkginfo__.py | 6 +++--- test/bytecode_3.5/04_async_stmt.pyc | Bin 0 -> 306 bytes test/simple_source/bug35/04_async_stmt.py | 9 +++++++++ uncompyle6/main.py | 4 ++-- uncompyle6/semantics/pysource.py | 2 +- 5 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 test/bytecode_3.5/04_async_stmt.pyc create mode 100644 test/simple_source/bug35/04_async_stmt.py diff --git a/__pkginfo__.py b/__pkginfo__.py index 32e15b76..4dbe85d5 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -9,7 +9,7 @@ # Things that change more often go here. copyright = """ -Copyright (C) 2015-2017 Rocky Bernstein . +Copyright (C) 2015-2018 Rocky Bernstein . """ classifiers = ['Development Status :: 5 - Production/Stable', @@ -41,12 +41,12 @@ entry_points = { ]} ftp_url = None install_requires = ['spark-parser >= 1.8.5, < 1.9.0', - 'xdis >= 3.6.5, < 3.7.0', 'six'] + 'xdis >= 3.6.6, < 3.7.0', 'six'] license = 'MIT' mailing_list = 'python-debugger@googlegroups.com' modname = 'uncompyle6' py_modules = None -short_desc = 'Python cross-version byte-code deparser' +short_desc = 'Python cross-version byte-code decompiler' web = 'https://github.com/rocky/python-uncompyle6/' # tracebacks in zip files are funky and not debuggable diff --git a/test/bytecode_3.5/04_async_stmt.pyc b/test/bytecode_3.5/04_async_stmt.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59e5d43d308cf3f6a55567269745339beffc0d6d GIT binary patch literal 306 zcmYjLyH3ME5S+Cg2N^6OBIOH^kQ;({bO_NzfhGkh05{g*9AL10(cM{Ki3<1_@=I>{ z3o7iS!$Q!=HJaoioff(~_O=38b8OSR{T<+;-;TCc}x%AyYfT z8}I~t0GBMhpzC@Efh9ag(0d@F+j@u_>*1Z;=0!sD#7{$EAGLbv;+d?a7FOx$Yhk;s ztERR^C8t^|olqATS>CUq13vY$Yl>=B%FL)n=W=q_JRF@&4vsTn+B(mSt?d4)?Lv{4 o%1GaR7%_o-8c|FGPlsI16Y68X@*fR&)@__tYT1= 3.5: TABLE_DIRECT.update({ 'await_expr': ( 'await %c', 0), - 'await_stmt': ( '%|%c', 0), + 'await_stmt': ( '%|%c\n', 0), 'async_for_stmt': ( '%|async for %c in %c:\n%+%c%-\n\n', 9, 1, 25 ), 'async_forelse_stmt': (