Merge branch 'python-3.3-to-3.5' into python-2.4

This commit is contained in:
rocky
2022-08-23 07:46:48 -04:00
3 changed files with 5 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ confidentiality. You may be asked about the authorship or claimed ownership of t
# The importance of your bug report
For many open-source projects bugs where the expectation is that bugs are rare, reporting bugs in a *thoughtful* way can be helpful. See also [How to Ask Questions the Smart Way](https://www.osadl.org/Eric-Raymond-How-to-ask-questions-the-s.questions-the-smart-way.0.html).
For many open-source projects bugs where the expectation is that bugs are rare, reporting bugs in a *thoughtful* way can be helpful. See also [How to Ask Questions the Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html).
In this project though, most of the bug reports boil down to the something like: I have I am trying to reverse engineer some code that I am not the author/owner and that person doesn't want me to have access to. I am hitting a problem somewhere along the line which might have to do with decompilation, but it could be something else like how the bytecode was extracted, some problem in deliberately obfuscated code, or the use some kind of Python bytecode version that isn't supported by the decompiler.

View File

@@ -1611,8 +1611,6 @@ class Python3Parser(PythonParser):
elif lhs == "kwarg":
arg = tokens[first].attr
return not (isinstance(arg, str) or isinstance(arg, unicode))
elif lhs in ("iflaststmt", "iflaststmtl") and self.version[:2] == (3, 6):
return ifstmt(self, lhs, n, rule, ast, tokens, first, last)
elif rule == ("ifstmt", ("testexpr", "_ifstmts_jump")):
# FIXME: go over what's up with 3.0. Evetually I'd like to remove RETURN_END_IF
if self.version <= (3, 0) or tokens[last] == "RETURN_END_IF":

View File

@@ -16,6 +16,10 @@
def iflaststmt(self, lhs, n, rule, tree, tokens, first, last):
testexpr = tree[0]
# print("XXX", first, last, rule)
# for t in range(first, last): print(tokens[t])
# print("="*40)
if testexpr[0] in ("testtrue", "testfalse"):
test = testexpr[0]