From 8184778637356b9fcd2e58a111aebe6ea5ada69b Mon Sep 17 00:00:00 2001 From: xi Date: Sun, 18 Jun 2006 18:04:15 +0000 Subject: [PATCH] Fix a typo in a plain scalar scanner. git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@191 18f92427-320e-0410-9341-c67f048884a3 --- lib/yaml/scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/yaml/scanner.py b/lib/yaml/scanner.py index 059b173..25e1afe 100644 --- a/lib/yaml/scanner.py +++ b/lib/yaml/scanner.py @@ -1305,13 +1305,13 @@ class Scanner: ch = self.peek(length) if ch in u'\0 \t\r\n\x85\u2028\u2029' \ or (not self.flow_level and ch == u':' and - self.peek(length+1) in u'\0 \t\r\n\x28\u2028\u2029') \ + self.peek(length+1) in u'\0 \t\r\n\x85\u2028\u2029') \ or (self.flow_level and ch in u',:?[]{}'): break length += 1 # It's not clear what we should do with ':' in the flow context. if (self.flow_level and ch == u':' - and self.peek(length+1) not in u'\0 \t\r\n\x28\u2028\u2029,[]{}'): + and self.peek(length+1) not in u'\0 \t\r\n\x85\u2028\u2029,[]{}'): self.forward(length) raise ScannerError("while scanning a plain scalar", start_mark, "found unexpected ':'", self.get_mark(), -- 2.11.4.GIT