summaryrefslogtreecommitdiff
path: root/resolver.py
diff options
context:
space:
mode:
Diffstat (limited to 'resolver.py')
-rw-r--r--resolver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resolver.py b/resolver.py
index c684d60..cbbda62 100644
--- a/resolver.py
+++ b/resolver.py
@@ -240,7 +240,7 @@ class BaseResolver(object):
def check_resolver_prefix(self, depth, path, kind,
current_node, current_index):
# type: (int, Text, Any, Any, Any) -> bool
- node_check, index_check = path[depth-1]
+ node_check, index_check = path[depth - 1]
if isinstance(node_check, string_types):
if current_node.tag != node_check:
return False
@@ -296,6 +296,7 @@ class BaseResolver(object):
class Resolver(BaseResolver):
pass
+
Resolver.add_implicit_resolver_base(
u'tag:yaml.org,2002:bool',
re.compile(u'''^(?:yes|Yes|YES|no|No|NO