tomerfiliba / agnos

Agnos - The Agnostic RPC Framework
http://agnos.sourceforge.net
Other
14 stars 7 forks source link

Incorrect variable referenced in generated files (Python) #54

Closed GeekOffTheStreet closed 11 years ago

GeekOffTheStreet commented 11 years ago
--- agnos-1.0.2/compiler/src/agnos_compiler/targets/python.py   2012-06-18 00:54:26.000000000 -0600
+++ agnos-1.0.2.patched/compiler/src/agnos_compiler/targets/python.py   2013-08-14 16:11:50.000000000 -0600
@@ -581,7 +581,7 @@
             for func in service.funcs.values():
                 args = ", ".join(arg.name for arg in func.args)
                 with BLOCK("def sync_{0}(_self, {1})", func.id, args):
-                    with BLOCK("with self.lock"):
+                    with BLOCK("with _self.lock"):
                         with BLOCK("with _self.utils.invocation({0}, {1}) as seq", 
                                 func.id, type_to_packer(func.type)):
                             if not func.args: