[pypy-svn] r21726 - pypy/dist/pypy/translator

pedronis at codespeak.net pedronis at codespeak.net
Thu Jan 5 22:04:11 CET 2006


Author: pedronis
Date: Thu Jan  5 22:04:10 2006
New Revision: 21726

Modified:
   pypy/dist/pypy/translator/interactive.py
Log:
clearer naming



Modified: pypy/dist/pypy/translator/interactive.py
==============================================================================
--- pypy/dist/pypy/translator/interactive.py	(original)
+++ pypy/dist/pypy/translator/interactive.py	Thu Jan  5 22:04:10 2006
@@ -41,7 +41,7 @@
 
         self.update_options(argtypes, kwds)
 
-    FREEZE = {
+    GOAL_USES_OPTS = {
         'annotate': ['debug'],
         'rtype': ['insist'],
     }
@@ -51,7 +51,8 @@
              print goal
              self.ensure_setup()
         elif kind == 'post':
-            self.frozen_options.update(dict.fromkeys(self.FREEZE[goal], True))
+            used_opts = dict.fromkeys(self.GOAL_USES_OPTS[goal], True)
+            self.frozen_options.update(used_opts)
 
     def ensure_setup(self, argtypes=None, policy=None):
         if not self.driver_setup:



More information about the Pypy-commit mailing list