Better 1.5 parameter tuple handling...

Tidy README.rst
This commit is contained in:
rocky
2019-10-10 17:20:00 -04:00
parent f0f9676f52
commit 0cf32f1b70
4 changed files with 8 additions and 15 deletions

View File

@@ -1,11 +1,3 @@
# This configuration was automatically generated from a CircleCI 1.0 config.
# It should include any build commands you had along with commands that CircleCI
# inferred from your project structure. We strongly recommend you read all the
# comments in this file to understand the structure of CircleCI 2.0, as the idiom
# for configuration has changed substantially in 2.0 to allow arbitrary jobs rather
# than the prescribed lifecycle of 1.0. In general, we recommend using this generated
# configuration as a reference rather than using it in production, though in most
# cases it should duplicate the execution of your original 1.0 config.
version: 2 version: 2
jobs: jobs:
build: build:

View File

@@ -1,7 +1,5 @@
|buildstatus| |Pypi Installs| |Latest Version| |Supported Python Versions| |buildstatus| |Pypi Installs| |Latest Version| |Supported Python Versions|
|packagestatus| |packagestatus|
uncompyle6 uncompyle6
@@ -15,7 +13,7 @@ Introduction
------------ ------------
*uncompyle6* translates Python bytecode back into equivalent Python *uncompyle6* translates Python bytecode back into equivalent Python
source code. It accepts bytecodes from Python version 1.3 to version source code. It accepts bytecodes from Python version 1.0 to version
3.8, spanning over 24 years of Python releases. We include Dropbox's 3.8, spanning over 24 years of Python releases. We include Dropbox's
Python 2.5 bytecode and some PyPy bytecode. Python 2.5 bytecode and some PyPy bytecode.
@@ -90,9 +88,9 @@ This uses setup.py, so it follows the standard Python routine:
:: ::
pip install -e . # set up to run from source tree $ pip install -e . # set up to run from source tree
# Or if you want to install instead # Or if you want to install instead
python setup.py install # may need sudo $ python setup.py install # may need sudo
A GNU makefile is also provided so :code:`make install` (possibly as root or A GNU makefile is also provided so :code:`make install` (possibly as root or
sudo) will do the steps above. sudo) will do the steps above.

Binary file not shown.

View File

@@ -2232,7 +2232,10 @@ class SourceWalker(GenericASTTraversal, object):
# if lhs is not a UNPACK_TUPLE (or equiv.), # if lhs is not a UNPACK_TUPLE (or equiv.),
# add parenteses to make this a tuple # add parenteses to make this a tuple
# if node[1][0] not in ('unpack', 'unpack_list'): # if node[1][0] not in ('unpack', 'unpack_list'):
return "(" + self.traverse(node[1]) + ")" result = self.traverse(node[1])
if not (result.startswith("(") and result.endswith(")") ):
result = "(%s)" % result
return result
# return self.traverse(node[1]) # return self.traverse(node[1])
raise Exception("Can't find tuple parameter " + name) raise Exception("Can't find tuple parameter " + name)