Changeset 191


Ignore:
Timestamp:
06/18/06 14:04:15 (8 years ago)
Author:
xi
Message:

Fix a typo in a plain scalar scanner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/scanner.py

    r188 r191  
    13061306                if ch in u'\0 \t\r\n\x85\u2028\u2029'   \ 
    13071307                        or (not self.flow_level and ch == u':' and 
    1308                                 self.peek(length+1) in u'\0 \t\r\n\x28\u2028\u2029') \ 
     1308                                self.peek(length+1) in u'\0 \t\r\n\x85\u2028\u2029') \ 
    13091309                        or (self.flow_level and ch in u',:?[]{}'): 
    13101310                    break 
     
    13121312            # It's not clear what we should do with ':' in the flow context. 
    13131313            if (self.flow_level and ch == u':' 
    1314                     and self.peek(length+1) not in u'\0 \t\r\n\x28\u2028\u2029,[]{}'): 
     1314                    and self.peek(length+1) not in u'\0 \t\r\n\x85\u2028\u2029,[]{}'): 
    13151315                self.forward(length) 
    13161316                raise ScannerError("while scanning a plain scalar", start_mark, 
Note: See TracChangeset for help on using the changeset viewer.