diff --git a/README.rst b/README.rst index 31a0328c..aa171c20 100644 --- a/README.rst +++ b/README.rst @@ -56,7 +56,7 @@ This uses setup.py, so it follows the standard Python routine: :: - pip install -e setup.py + pip install -e . pip install -r requirements-dev.txt python setup.py install # may need sudo # or if you have pyenv: diff --git a/__pkginfo__.py b/__pkginfo__.py index 4e2d407a..92ed8894 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -33,7 +33,7 @@ classifiers = ['Development Status :: 5 - Production/Stable', # The rest in alphabetic order author = "Rocky Bernstein, Hartmut Goebel, John Aycock, and others" author_email = "rb@dustyfeet.com" -entry_points={ +entry_points = { 'console_scripts': [ 'uncompyle6=uncompyle6.bin.uncompile:main_bin', 'pydisassemble=uncompyle6.bin.pydisassemble:main', diff --git a/test/simple_source/bug35/04_CALL_FUNCTION_VAR_KW.py b/test/simple_source/bug35/04_CALL_FUNCTION_VAR_KW.py index 5def28e7..3df872f1 100644 --- a/test/simple_source/bug35/04_CALL_FUNCTION_VAR_KW.py +++ b/test/simple_source/bug35/04_CALL_FUNCTION_VAR_KW.py @@ -1,4 +1,5 @@ # sql/schema.py +# Note that kwargs comes before "positional" args def tometadata(self, metadata, schema, Table, args, name=None): table = Table( name, metadata, schema=schema, diff --git a/uncompyle6/semantics/fragments.py b/uncompyle6/semantics/fragments.py index 2e34877a..2918c011 100644 --- a/uncompyle6/semantics/fragments.py +++ b/uncompyle6/semantics/fragments.py @@ -366,6 +366,7 @@ class FragmentsWalker(pysource.SourceWalker, object): self.write(sep); sep = ", " self.preorder(subnode) self.set_pos_info(node, start, len(self.f.getvalue())) + self.set_pos_info(node[-1], start, len(self.f.getvalue())) self.println() self.prune() # stop recursing