diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/provider_index.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/provider_index.py b/lib/spack/spack/provider_index.py index d7f2379486..6bcf98009e 100644 --- a/lib/spack/spack/provider_index.py +++ b/lib/spack/spack/provider_index.py @@ -28,7 +28,7 @@ The ``virtual`` module contains utility classes for virtual dependencies. from itertools import product as iproduct from pprint import pformat -import yaml +import spack.util.spack_yaml as syaml from yaml.error import MarkedYAMLError import spack @@ -190,13 +190,13 @@ class ProviderIndex(object): lambda vpkg, pset: [ vpkg.to_node_dict(), [p.to_node_dict() for p in pset]], list) - yaml.dump({'provider_index': {'providers': provider_list}}, - stream=stream) + syaml.dump({'provider_index': {'providers': provider_list}}, + stream=stream) @staticmethod def from_yaml(stream): try: - yfile = yaml.load(stream) + yfile = syaml.load(stream) except MarkedYAMLError, e: raise spack.spec.SpackYAMLError( "error parsing YAML ProviderIndex cache:", str(e)) |