[pypy-svn] r31861 - pypy/dist/pypy/translator/js

fijal at codespeak.net fijal at codespeak.net
Thu Aug 31 00:56:45 CEST 2006


Author: fijal
Date: Thu Aug 31 00:56:43 2006
New Revision: 31861

Modified:
   pypy/dist/pypy/translator/js/main.py
Log:
Fixed stupid typo (due to variable names leaking, it *was* compilable)


Modified: pypy/dist/pypy/translator/js/main.py
==============================================================================
--- pypy/dist/pypy/translator/js/main.py	(original)
+++ pypy/dist/pypy/translator/js/main.py	Thu Aug 31 00:56:43 2006
@@ -49,7 +49,7 @@
         if func_code.func_code.co_argcount > 0 and func_code.func_code.co_argcount != len(func_code.func_defaults):
             raise BadSignature("Function %s does not have default arguments" % func_name)
     source_ssf = "\n".join(["import %s" % module_name, "def some_strange_function_which_will_never_be_called():"] + ["  "+\
-        module_name+"."+fun_name+get_args(mod.__dict__[func_name]) for fun_name in function_names])
+        module_name+"."+fun_name+get_args(mod.__dict__[fun_name]) for fun_name in function_names])
     print source_ssf
     exec(source_ssf) in globals()
     #fn = compile_function([mod.__dict__[f_name] for f_name in function_names], [[] for i in function_names])



More information about the Pypy-commit mailing list