Skip to content

Commit

Permalink
Local import YAML instead of top level
Browse files Browse the repository at this point in the history
yaml is only used to parse conda files.
  • Loading branch information
oz123 committed Jul 25, 2022
1 parent a3d9beb commit 5a3ad57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dparse/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import unicode_literals, absolute_import
from collections import OrderedDict
import re
import yaml

from io import StringIO

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 5a3ad57

Please sign in to comment.