Skip to content

Commit 3290bb5

Browse files
Merge pull request #53 from oz123/local-import-yaml
Local import YAML instead of top level
2 parents 699069e + 5a3ad57 commit 3290bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dparse/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import unicode_literals, absolute_import
33
from collections import OrderedDict
44
import re
5-
import yaml
65

76
from io import StringIO
87

@@ -301,6 +300,7 @@ def parse(self):
301300
302301
:return:
303302
"""
303+
import yaml
304304
try:
305305
data = yaml.safe_load(self.obj.content)
306306
if data and 'dependencies' in data and isinstance(data['dependencies'], list):

0 commit comments

Comments
 (0)