diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-15 16:21:28 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-15 16:21:28 +0200 |
commit | 5ac6848b87e54e23fe87f5324726ff177c96550b (patch) | |
tree | 14f617144aeb10657c9a563554ae0193488f8ebe /scanner.py | |
parent | 21e5474048c6a5b9a267c3717078cd207ee0bdb1 (diff) | |
download | ruamel.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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |