Ticket #105: parser.patch

File parser.patch, 640 bytes (added by anonymous, 5 years ago)
  • C:/projects/workspace_python/PyYAML_2/lib/yaml/parser.py

     
    9090 
    9191    def check_event(self, *choices): 
    9292        # Check the type of the next event. 
    93         if self.current_event is None: 
    94             if self.state: 
    95                 self.current_event = self.state() 
     93        self.peek_event() 
    9694        if self.current_event is not None: 
    9795            if not choices: 
    9896                return True