spack/lib/spack/external
Todd Gamblin 396c37d82f unparser: implement operator precedence algorithm for unparser
Backport operator precedence algorithm from here:
    397b96f6d7

This eliminates unnecessary parentheses from our unparsed output and makes Spack's unparser
consistent with the one in upstream Python 3.9+, with one exception.

Our parser normalizes argument order when `py_ver_consistent` is set, so that star arguments
in function calls come last.  We have to do this because Python 2's AST doesn't have information
about their actual order.

If we ever support only Python 3.9 and higher, we can easily switch over to `ast.unparse`, as
the unparsing is consistent except for this detail (modulo future changes to `ast.unparse`)
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
__init__.py unparser: implement operator precedence algorithm for unparser 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