Commits

Juancarlo Añez committed 216b059

Changed all the yield None to just yield.

Comments (0)

Files changed (1)

grako/contexts.py

         self.last_node = None
         try:
             self.ast = ast_copy
-            yield None
+            yield
             ast = self.ast
             cst = self.cst
         except:
         self._push_cut()
         try:
             with self._try():
-                yield None
+                yield
             raise OptionSucceeded()
         except FailedCut:
             raise
         self.last_node = None
         with self._try():
             try:
-                yield None
+                yield
             except OptionSucceeded:
                 pass
 
         self.last_node = None
         with self._choice():
             with self._option():
-                yield None
+                yield
 
     @contextmanager
     def _group(self):
         self._push_cst()
         try:
-            yield None
+            yield
             cst = self.cst
         finally:
             self._pop_cst()
         self._push_ast()
         self._enter_lookahead()
         try:
-            yield None
+            yield
         finally:
             self._leave_lookahead()
             self._goto(p)