R. Bernstein
c9cae2d09e
Merge pull request #246 from rocky/async-await-generator
...
Bug in 3.5+ generator detection...
2019-06-05 20:16:24 -04:00
rocky
af209dc142
Bug in 3.5+ generator detection...
...
Also bug in 3.5 code detection for async attribute
2019-06-05 19:08:21 -04:00
R. Bernstein
ad419e0ed9
Merge pull request #243 from rocky/docstrings-again
...
Some docstring bugs fixed, some remain...
2019-05-31 08:37:41 -04:00
R. Bernstein
ee5c7da790
Merge pull request #244 from x0ret/docstrings-again
...
Fix unicode docstring again
2019-05-28 15:57:01 -04:00
x0ret
39c12704a8
fix unicode docstring again, handling unicode string in py2, fix docstring indentation
2019-05-28 15:11:44 +04:30
rocky
3b3fc09b60
Reinstate more docstring tests
...
But 3.{6,7} are stil broken
2019-05-27 20:59:29 -04:00
rocky
f7697ccd7b
Some docstring bugs fixed, some remain...
...
I had broken escaping the tail quote by inadvertently switching from """
by default to '''.
Some additional tests have been added to 00_docstring.py for
this. However...
Unicode decoding is still broken. For now I've added errors="ignore" to
.decode("utf-8", ...) until a better fix is found. Sigh.
2019-05-27 18:01:08 -04:00
R. Bernstein
e364499bb9
Merge pull request #242 from x0ret/master
...
Towards supporting unicode
2019-05-27 12:10:09 -04:00
x0ret
9db59f1b80
add support for generated source encoding
2019-05-27 17:19:10 +04:30
x0ret
a5cdb50154
towards supporting unicode: docstring
2019-05-27 17:00:08 +04:30
rocky
792ef5b5b8
Simplfy - TODO fix unicode in docstrings
2019-05-24 11:03:44 -04:00
rocky
47ed0795b2
3.x docsting escaping works differently?
2019-05-24 09:53:56 -04:00
rocky
cccf33573b
A runnable docstring test...
...
TODO: fix up the code! so this doesn't throw an assert error!
2019-05-24 02:29:23 -04:00
rocky
3c3e5c82fc
Another small tweak
2019-05-21 17:04:09 -04:00
rocky
436260dc9a
Small tweak
2019-05-21 17:02:24 -04:00
rocky
8f0674706b
Grammar simplification
2019-05-21 16:10:12 -04:00
rocky
01cc184716
dict grammar rule cleanup
2019-05-21 15:09:40 -04:00
rocky
2771cb46ab
short option -T for --tree+
2019-05-21 11:38:43 -04:00
rocky
9ed4326f7e
Administrivia
2019-05-21 08:29:03 -04:00
rocky
e3b10b62d7
Remove debug stmt
2019-05-21 07:19:08 -04:00
rocky
59b8f18486
Fix 3.7 list comprehension bug
2019-05-21 07:01:27 -04:00
rocky
bcf6939312
Merge branch 'master' of github.com:rocky/python-uncompyle6
2019-05-20 13:06:33 -04:00
rocky
3b7f49c01d
Status area update and ...
...
Handle bytecode mismatch errors
2019-05-20 13:05:41 -04:00
R. Bernstein
ae976e991a
Update README.rst
2019-05-20 09:14:46 -04:00
rocky
8fe6309650
Get ready for release 3.3.3
3.3.3
2019-05-19 16:55:52 -04:00
R. Bernstein
4c4aa393df
Update HISTORY.md
2019-05-17 10:24:13 -04:00
R. Bernstein
a8b8c2908c
Update README.rst
2019-05-15 03:25:06 -04:00
R. Bernstein
cb406e2581
Update README.rst
2019-05-15 03:24:33 -04:00
R. Bernstein
20b16c44ff
Update README.rst
2019-05-15 03:22:05 -04:00
rocky
3abe8d11d3
3.7 handling of 4-level attribute import
...
Fixes #239
2019-05-14 12:09:38 -04:00
R. Bernstein
26140934da
Merge pull request #237 from rocky/for-iter-come-from
...
Less dishonest COME_FROMs in 3.6+ code
2019-05-14 09:31:27 -04:00
x0ret
b62752eca1
2 more 3.7 chained comparison rule
2019-05-14 17:51:51 +04:30
rocky
9db446d928
Another 3.7 chained comparison rule
2019-05-14 07:26:18 -04:00
rocky
46acb74745
Only add forward-jumping COME_FROM in 3.6+
...
Is this a repeat commit?
2019-05-14 06:28:29 -04:00
rocky
44e1288e2f
Less dishonest COME_FROMs
...
Addresses all of the problems seen in 3.7 datetime.py.
However we limit COME_FROMs only to forward jumps, not back (which in the case of Python code right now means looping) jumps.
2019-05-13 23:15:55 -04:00
R. Bernstein
ce9270dda0
Merge pull request #236 from x0ret/master
...
Python 3.7 decompiling full 3.7.3 library without error #235
2019-05-13 11:53:07 -04:00
x0ret
3d732db3cc
fix chained compare parse error
2019-05-13 19:57:24 +04:30
x0ret
009a74da7d
fix UnboundLocalError
2019-05-13 19:41:42 +04:30
R. Bernstein
251eb6da1b
Merge pull request #233 from rocky/fstring
...
Revise format string handling
2019-05-13 09:43:47 -04:00
rocky
8b5e0f49f8
Handle {{ }} escape, but when appropriate
2019-05-13 09:41:16 -04:00
rocky
1cc08d9598
Make precedence table top-bottom order reference...
...
in https://docs.python.org/2/reference/expressions.html#operator-precedence or
https://docs.python.org/3/reference/expressions.html#operator-precedence
.
2019-05-13 09:41:16 -04:00
x0ret
d99e78d46d
set precedences value for format strings
2019-05-13 09:41:09 -04:00
rocky
b94cce7b12
Revise format string handling
...
fstring_single{1,2} -> format_value{1,2} to match Python AST names
better
2019-05-13 09:40:32 -04:00
R. Bernstein
fe786b2b95
Merge pull request #232 from x0ret/master
...
handling LOAD_CONST in build_tuple and multiple call_ex_kw(s) issues
2019-05-12 06:11:11 -04:00
x0ret
bf56fbeeec
enhance call_ex_kw(s) positional args handling
2019-05-12 13:11:31 +04:30
rocky
6d8d9fd83b
Go over precedence in calls
2019-05-11 23:32:24 -04:00
rocky
78ca6a0c1f
Add 3.7 testcase for ex_kw call
2019-05-11 19:37:44 -04:00
rocky
86dd321256
Accept x0ret's suggestion for 3.6+ if detection..
...
in the presense of a try block.
Fixes #229
2019-05-10 19:36:16 -04:00
rocky
4db364f701
And another tweak.
2019-05-10 17:29:03 -04:00
rocky
c03b039714
Small tweaks to last commit
2019-05-10 17:25:25 -04:00