spack/lib/spack/external
Todd Gamblin 2badd6500e unparse: Make unparsing consistent for 2.7 and 3.5-3.10
Previously, there were differences in the unparsed code for Python 2.7 and for 3.5-3.10.
This makes unparsed code the same across these Python versions by:

    1. Ensuring there are no spaces between unary operators and
       their operands.
    2. Ensuring that *args and **kwargs are always the last arguments,
       regardless of the python version.
    3. Always unparsing print as a function.
    4. Not putting an extra comma after Python 2 class definitions.

Without these changes, the same source can generate different code for different
Python versions, depending on subtle AST differences.

One place where single source will generate an inconsistent AST is with
multi-argument print statements, e.g.:

```
    print("foo", "bar", "baz")
```

In Python 2, this prints a tuple; in Python 3, it is the print function with
multiple arguments.  Use `from __future__ import print_function` to avoid
this inconsistency.
2022-01-12 06:14:18 -08:00
..
altgraph Buildcache: Install into non-default directory layouts (#13797) 2020-03-16 08:42:23 -05:00
archspec Use gnuconfig package for config file replacement for RISC-V. (#26364) 2021-10-05 19:22:55 +00:00
attr externals: add attrs for new jsonschema 2021-12-19 12:55:42 -08:00
jinja2 Update Jinja2 to v2.11.3 and MarkupSafe to v1.1.1 (#27264) 2021-11-24 10:21:35 +01:00
jsonschema externals: Upgrade jsonschema to v3.2.0 2021-12-19 12:55:42 -08:00
macholib External: add macholib and altgraph needed to relocate Mach-o binaries on Linux (#12909) 2019-09-26 11:48:22 -05:00
markupsafe Update Jinja2 to v2.11.3 and MarkupSafe to v1.1.1 (#27264) 2021-11-24 10:21:35 +01:00
py2 externals: add functools32 for new jsonschema 2021-12-19 12:55:42 -08:00
pyrsistent externals: add pyrsistent for new jsonschema 2021-12-19 12:55:42 -08:00
pytest-fallback Remove support for Python 2.6 (#27256) 2021-11-23 09:06:17 -08:00
ruamel Python 3.10 support: collections.abc (#20441) 2021-02-01 11:30:25 -06:00
spack_astunparse unparse: Make unparsing consistent for 2.7 and 3.5-3.10 2022-01-12 06:14:18 -08:00
__init__.py externals: add astunparse 2022-01-12 06:14:18 -08:00
ctest_log_parser.py Fix overly generic exceptions in log parser (#27413) 2021-11-17 11:24:14 +01:00
distro.py Update distro to v1.6.0 (#27263) 2021-11-24 10:10:11 +00:00
six.py Update six to v1.16.0 (#27265) 2021-11-24 10:20:04 +01:00