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

arigo at codespeak.net arigo at codespeak.net
Sun Sep 3 20:45:55 CEST 2006


Author: arigo
Date: Sun Sep  3 20:45:54 2006
New Revision: 31967

Modified:
   pypy/dist/pypy/translator/js/main.py
Log:
(pedronis, arigo)

Uh?  That couldn't possibly have worked.


Modified: pypy/dist/pypy/translator/js/main.py
==============================================================================
--- pypy/dist/pypy/translator/js/main.py	(original)
+++ pypy/dist/pypy/translator/js/main.py	Sun Sep  3 20:45:54 2006
@@ -5,11 +5,12 @@
 
 #from pypy.translator.js.test.runtest import compile_function
 #from pypy.translator.translator import TranslationContext
-from pypy.translator.driver import TranslationDriver, _default_options
+from pypy.translator.driver import TranslationDriver, DEFAULT_OPTIONS
 from pypy.translator.js.js import JS
 from pypy.tool.error import AnnotatorError, FlowingError, debug
 from pypy.rpython.nonconst import NonConstant
 from pypy.annotation.policy import AnnotatorPolicy
+import optparse
 
 class FunctionNotFound(Exception):
     pass
@@ -53,7 +54,7 @@
     exec(source_ssf) in globals()
     #fn = compile_function([mod.__dict__[f_name] for f_name in function_names], [[] for i in function_names])
     # now we gonna just cut off not needed function
-    options = _default_options.copy()
+    options = optparse.Values(defaults=DEFAULT_OPTIONS)
     options.debug_transform = use_debug
     driver = TranslationDriver(options=options)
     try:



More information about the Pypy-commit mailing list