Commits

Anonymous committed d825ec2

pycore: renamed perform_doi project config to perform_doa

Comments (0)

Files changed (4)

 -----------------------
 
 `PyCore.run_module()` runs a module and collects object information if
-``perform_doi`` project config is set.  Since as the program runs rope
+``perform_doa`` project config is set.  Since as the program runs rope
 gathers type information, the program runs slower.  After the program
 is run, you can get better code assists and some of the refactorings
 perform much better.

rope/base/default_config.py

     prefs['soa_followed_calls'] = 0
 
     # If `False` when running modules or unit tests "dynamic object
-    # inference" is turned off.  This makes them much faster.
-    prefs['perform_doi'] = True
+    # analysis" is turned off.  This makes them much faster.
+    prefs['perform_doa'] = True
 
     # Rope can check the validity of its object DB when running.
     prefs['validate_objectdb'] = True

rope/base/oi/objectinfo.py

                     result.append(parameter)
         return result
 
-    def doi_data_received(self, data):
+    def doa_data_received(self, data):
         def doi_to_normal(textual):
             pyobject = self.doi_to_pyobject(textual)
             return self.to_textual(pyobject)
         controlling the process.
 
         """
-        receiver = self.object_info.doi_data_received
-        if not self.project.get_prefs().get('perform_doi', True):
+        perform_doa = self.project.get_prefs().get('perform_doi', True)
+        perform_doa = self.project.get_prefs().get('perform_doa', perform_doa)
+        receiver = self.object_info.doa_data_received
+        if not perform_doa:
             receiver = None
         runner = rope.base.oi.doa.PythonFileRunner(
             self, resource, args, stdin, stdout, receiver)