[pypy-commit] pypy py3.5-async: Restore function lost because of rename (handle_funcdef without async)

raffael_t pypy.commits at gmail.com
Mon Jul 4 16:00:55 EDT 2016


Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5-async
Changeset: r85551:288c22e89431
Date: 2016-07-04 22:00 +0200
http://bitbucket.org/pypy/pypy/changeset/288c22e89431/

Log:	Restore function lost because of rename (handle_funcdef without
	async)

diff --git a/pypy/interpreter/astcompiler/astbuilder.py b/pypy/interpreter/astcompiler/astbuilder.py
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -494,7 +494,10 @@
                                    funcdef_node.get_lineno(), funcdef_node.get_column())
 
     def handle_async_funcdef(self, node, decorators=None):
-        return handle_funcdef_impl(c, node.get_child(1), decorators, 1)
+        return handle_funcdef_impl(node.get_child(1), decorators, 1)
+    
+    def handle_funcdef(self, node, decorators=None):
+        return handle_funcdef_impl(node, decorators, 0)
 
     def handle_decorated(self, decorated_node):
         decorators = self.handle_decorators(decorated_node.get_child(0))


More information about the pypy-commit mailing list