Skip to content

Commit

Permalink
update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed Oct 29, 2013
1 parent 468a1a1 commit 8b16086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _custom_json_hook(obj):

def validate_yaml(string):
try:
yaml.load(string, OrderedDictYAMLLoader)
yamlfy(string)
except:
return False
else:
Expand Down Expand Up @@ -78,4 +78,4 @@ def construct_mapping(self, node, deep=False):
node.start_mark, 'found unacceptable key (%s)' % exc, key_node.start_mark)
value = self.construct_object(value_node, deep=deep)
mapping[key] = value
return mapping
return mapping

0 comments on commit 8b16086

Please sign in to comment.