id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc
105	remove minor code repetition	py4fun@…	xi	"remove minor code repetition in parser (reuse self.peek_event())
{{{
Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/parser.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/parser.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/parser.py	(working copy)
@@ -90,9 +90,7 @@
 
     def check_event(self, *choices):
         # Check the type of the next event.
-        if self.current_event is None:
-            if self.state:
-                self.current_event = self.state()
+        self.peek_event()
         if self.current_event is not None:
             if not choices:
                 return True

}}}"	defect	new	low	pyyaml	minor			
