summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-15 16:21:28 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-15 16:21:28 +0200
commit5ac6848b87e54e23fe87f5324726ff177c96550b (patch)
tree14f617144aeb10657c9a563554ae0193488f8ebe /scanner.py
parent21e5474048c6a5b9a267c3717078cd207ee0bdb1 (diff)
downloadruamel.yaml-5ac6848b87e54e23fe87f5324726ff177c96550b.tar.gz
fix issue #220 error when running code with Python -O0.15.56
Diffstat (limited to 'scanner.py')
-rw-r--r--scanner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scanner.py b/scanner.py
index 1e26012..0d5885a 100644
--- a/scanner.py
+++ b/scanner.py
@@ -527,7 +527,8 @@ class Scanner(object):
# Reset possible simple key on the current level.
self.remove_possible_simple_key()
# Decrease the flow level.
- assert self.flow_context.pop() == to_pop
+ popped = self.flow_context.pop()
+ assert popped == to_pop
# No simple keys after ']' or '}'.
self.allow_simple_key = False
# Add FLOW-SEQUENCE-END or FLOW-MAPPING-END.