Author: Manuel Jacob
Branch: refactor-translator
Changeset: r61777:aaddddf3e83b
Date: 2013-02-25 15:23 +0100
http://bitbucket.org/pypy/pypy/changeset/aaddddf3e83b/

Log:    Rename driver.exposed to driver._tasks to avoid confusion.

diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -102,13 +102,13 @@
         
         self.default_goal = default_goal
         self.extra_goals = []
-        self.exposed = []
+        self._tasks = []
 
         # expose tasks
         def expose_task(task):
             def proc():
                 return self.proceed(task)
-            self.exposed.append(task)
+            self._tasks.append(task)
             setattr(self, task, proc)
 
         expose_task('annotate')
diff --git a/rpython/translator/test/test_driver.py 
b/rpython/translator/test/test_driver.py
--- a/rpython/translator/test/test_driver.py
+++ b/rpython/translator/test/test_driver.py
@@ -7,16 +7,16 @@
 def test_c_no_jit():
     td = TranslationDriver()
     goals = ['annotate', 'rtype', 'backendopt', 'source', 'compile']
-    assert td.exposed == goals
+    assert td._tasks == goals
 
 
 def test_c_with_jit():
     td = TranslationDriver({'jit': True})
     goals = ['annotate', 'rtype', 'pyjitpl', 'backendopt', 'source', 'compile']
-    assert td.exposed == goals
+    assert td._tasks == goals
 
 
 def test_no_backendopt():
     td = TranslationDriver({'backendopt.none': True})
     goals = ['annotate', 'rtype', 'source', 'compile']
-    assert td.exposed == goals
+    assert td._tasks == goals
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to