You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Merge branch 'master' of github.com:rocky/python-uncompyle6
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
||||
# This is based on your 1.0 configuration file or project settings
|
||||
- run:
|
||||
working_directory: ~/rocky/python-uncompyle6
|
||||
command: pyenv install 2.7.13 && pyenv local 2.7.13 && pyenv rehash && pip install virtualenv && pip install nose && pip install pep8 && pip install six && pyenv rehash
|
||||
command: pyenv local 2.7.11 && pyenv rehash && pip install virtualenv && pip install nose && pip install pep8 && pip install six && pyenv rehash
|
||||
# Dependencies
|
||||
# This would typically go in either a build or a build-and-test job when using workflows
|
||||
# Restore the dependency cache
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
# This is based on your 1.0 configuration file or project settings
|
||||
- run: pip install --upgrade setuptools
|
||||
- run: pip install -e .
|
||||
- run: pip install pytest==3.2.5 hypothesis
|
||||
- run: pip install pytest==3.2.5 hypothesis==3.0.0
|
||||
# Save dependency cache
|
||||
- save_cache:
|
||||
key: v1-dep-{{ .Branch }}-{{ epoch }}
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
# This would typically be a build job when using workflows, possibly combined with build
|
||||
# This is based on your 1.0 configuration file or project settings
|
||||
- run: python ./setup.py develop && make check-2.7
|
||||
- run: cd ./test/stdlib && pyenv local 2.7.13 && bash ./runtests.sh 'test_[p-z]*.py'
|
||||
- run: cd ./test/stdlib && pyenv local 2.7.11 && bash ./runtests.sh 'test_[p-z]*.py'
|
||||
# Teardown
|
||||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
|
||||
# Save test results
|
||||
|
BIN
test/bytecode_3.7_run/07_kwargs.pyc
Normal file
BIN
test/bytecode_3.7_run/07_kwargs.pyc
Normal file
Binary file not shown.
9
test/simple_source/bug36/07_kwargs.py
Normal file
9
test/simple_source/bug36/07_kwargs.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Bug in Python 3.6 and 3.7 was getting comma before **kw
|
||||
|
||||
def fn(arg, *, kwarg='test', **kw):
|
||||
assert arg == 1
|
||||
assert kwarg == 'testing'
|
||||
assert kw['foo'] == 'bar'
|
||||
|
||||
|
||||
fn(1, kwarg='testing', foo='bar')
|
@@ -40,10 +40,9 @@ def _get_outstream(outfile):
|
||||
except OSError:
|
||||
pass
|
||||
if PYTHON_VERSION < 3.0:
|
||||
mode = 'wb'
|
||||
return open(outfile, mode='wb')
|
||||
else:
|
||||
mode = 'w'
|
||||
return open(outfile, mode)
|
||||
return open(outfile, mode='w', encoding='utf-8')
|
||||
|
||||
def decompile(
|
||||
bytecode_version, co, out=None, showasm=None, showast=False,
|
||||
|
@@ -735,7 +735,7 @@ def make_function3(self, node, is_lambda, nested=1, code_node=None):
|
||||
self.write(sep)
|
||||
self.write("%s=%s" % (n, defaults[i]))
|
||||
sep = ', '
|
||||
ends_in_comma = True
|
||||
ends_in_comma = False
|
||||
pass
|
||||
pass
|
||||
pass
|
||||
|
Reference in New Issue
Block a user