From 5a3ad57e38f071bab4a82ddf7ead043191aef3f6 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Mon, 25 Jul 2022 15:57:34 +0200 Subject: [PATCH] Local import YAML instead of top level yaml is only used to parse conda files. --- dparse/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dparse/parser.py b/dparse/parser.py index c01ebab..18689a5 100644 --- a/dparse/parser.py +++ b/dparse/parser.py @@ -2,7 +2,6 @@ from __future__ import unicode_literals, absolute_import from collections import OrderedDict import re -import yaml from io import StringIO @@ -301,6 +300,7 @@ def parse(self): :return: """ + import yaml try: data = yaml.safe_load(self.obj.content) if data and 'dependencies' in data and isinstance(data['dependencies'], list):