Merge branch 'master' into python-2.4

This commit is contained in:
rocky
2018-12-30 12:28:02 -05:00
7 changed files with 16 additions and 7 deletions

7
NEWS
View File

@@ -1,3 +1,10 @@
uncompyle6 3.2.5 2019-12-30 Clearout sale
- 3.7.2 Remove deprecation warning on regexp string that isn't raw
- main.main() parameter `codes` is not used - note that
- Improve Python 3.6+ control flow detection
- More complete fragment instruction annotation for `imports`
uncompyle6 3.2.4 2018-10-27 7x9 release
- Bug fixes #180, #182, #187, #192

View File

@@ -57,7 +57,7 @@ entry_points = {
]}
ftp_url = None
install_requires = ['spark-parser >= 1.8.7, < 1.9.0',
'xdis >= 3.8.8, < 3.9.0']
'xdis >= 3.8.9, < 3.9.0']
license = 'GPL3'
mailing_list = 'python-debugger@googlegroups.com'

View File

@@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
echo "This script should be *sourced* rather than run directly through bash"
exit 1
fi
export PYVERSIONS='3.5.5 3.6.6 3.7.1 2.6.9 3.3.7 2.7.15 3.2.6 3.1.5 3.4.8'
export PYVERSIONS='3.5.5 3.6.8 3.7.2 2.6.9 3.3.7 2.7.15 3.2.6 3.1.5 3.4.8'

View File

@@ -172,7 +172,7 @@ def main_bin():
if numproc <= 1:
try:
result = main(src_base, out_base, files, codes, outfile,
result = main(src_base, out_base, files, None, outfile,
**options)
result = list(result) + [options.get('do_verify', None)]
if len(files) > 1:
@@ -207,7 +207,7 @@ def main_bin():
if f is None:
break
(t, o, f, v) = \
main(src_base, out_base, [f], codes, outfile, **options)
main(src_base, out_base, [f], None, outfile, **options)
tot_files += t
okay_files += o
failed_files += f

View File

@@ -169,9 +169,11 @@ def main(in_base, out_base, files, codes, outfile=None,
"""
in_base base directory for input files
out_base base directory for output files (ignored when
files list of filenames to be uncompyled (relative to src_base)
files list of filenames to be uncompyled (relative to in_base)
outfile write output to this filename (overwrites out_base)
Note: `codes` is not use. Historical compatability?
For redirecting output to
- <filename> outfile=<filename> (out_base is ignored)
- files below out_base out_base=...

View File

@@ -263,7 +263,7 @@ if __name__ == '__main__':
""".split()))
remain_tokens = set(tokens) - opcode_set
import re
remain_tokens = set([re.sub('_\d+$', '', t)
remain_tokens = set([re.sub(r'_\d+$', '', t)
for t in remain_tokens])
remain_tokens = set([re.sub('_CONT$', '', t)
for t in remain_tokens])

View File

@@ -12,4 +12,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This file is suitable for sourcing inside bash as
# well as importing into Python
VERSION='3.2.4'
VERSION='3.2.5'