diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2018-12-05 10:30:38 -0600 |
---|---|---|
committer | Greg Becker <becker33@llnl.gov> | 2018-12-06 15:48:23 -0800 |
commit | 88cb11758b2022f048fc8b8fcc9d6e9945e0054c (patch) | |
tree | 345266b88a7eff594b8595c20dec1b2867e133ff /.flake8_packages | |
parent | e0d22519cd512033e856054ada67b3e7cae90e4c (diff) | |
download | spack-88cb11758b2022f048fc8b8fcc9d6e9945e0054c.tar.gz spack-88cb11758b2022f048fc8b8fcc9d6e9945e0054c.tar.bz2 spack-88cb11758b2022f048fc8b8fcc9d6e9945e0054c.tar.xz spack-88cb11758b2022f048fc8b8fcc9d6e9945e0054c.zip |
spec: refactor and clean up Spec initialization
- Since early Spack versions, the SpecParser has (weirdly) been
responsible for initializing Spec fields.
- This refactors initialization to take place in Spec.__init__, as it
probably should have originally.
- This makes the code easier to read, the parser easier to understand,
and removes the use of __new__ in the parser to initialize the Spec.
- This also makes it possible to make a completely empty Spec with
`Spec()` -- this is an abstract Spec that will match anything.
Diffstat (limited to '.flake8_packages')
0 files changed, 0 insertions, 0 deletions