Skip to content

Commit

Permalink
Merge pull request #53 from oz123/local-import-yaml
Browse files Browse the repository at this point in the history
Local import YAML instead of top level
  • Loading branch information
yeisonvargasf committed Aug 4, 2022
2 parents 699069e + 5a3ad57 commit 3290bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dparse/parser.py
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 3290bb5

Please sign in to comment.