summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
commitc0f02842ced2240ec35315b0b88c775ae5423be9 (patch)
tree5ec77311b0abcbbd1b188e745cce688d1548372b /scanner.py
parenta14b9f18f48a8151650ebcac34f812a6b5e5eb63 (diff)
downloadruamel.yaml-c0f02842ced2240ec35315b0b88c775ae5423be9.tar.gz
fix issue #219 breakage on single entry map as flow sequence element0.15.60
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
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 c989e6d..320dfe7 100644
--- a/scanner.py
+++ b/scanner.py
@@ -786,7 +786,8 @@ class Scanner(object):
else:
if bool(self.flow_level):
if self.flow_context[-1] == '[':
- return False
+ if self.reader.peek(1) not in _THE_END_SPACE_TAB:
+ return False
# if self.reader.peek(1) in '\'"{[]}':
return True
# VALUE(block context): ':' (' '|'\n')