Anonymous avatar Anonymous committed 3f3ef60

pycore: using soa

Comments (0)

Files changed (2)

rope/base/libutils.py

     for observer in list(project.observers):
         observer.resource_changed(resource)
     if project.pycore.automatic_soa:
-        rope.base.pycore.perform_soi_on_changed_scopes(project, resource,
+        rope.base.pycore.perform_soa_on_changed_scopes(project, resource,
                                                        old_content)

rope/base/pycore.py

         self.extension_cache = _ExtensionCache(self)
         self.object_info = rope.base.oi.objectinfo.ObjectInfoManager(project)
         self._init_python_files()
-        self._init_automatic_soi()
+        self._init_automatic_soa()
         self._init_source_folders()
 
     def _init_python_files(self):
         for path in self.project.prefs.get('source_folders', []):
             self._custom_source_folders.append(path)
 
-    def _init_automatic_soi(self):
+    def _init_automatic_soa(self):
         if not self.automatic_soa:
             return
-        callback = self._file_changed_for_soi
+        callback = self._file_changed_for_soa
         observer = rope.base.resourceobserver.ResourceObserver(
             changed=callback, moved=callback, removed=callback)
         self.project.add_observer(observer)
         auto_soa = self.project.get_prefs().get('automatic_soi', None)
         return self.project.get_prefs().get('automatic_soa', auto_soa)
 
-    def _file_changed_for_soi(self, resource, new_resource=None):
+    def _file_changed_for_soa(self, resource, new_resource=None):
         old_contents = self.project.history.\
                        contents_before_current_change(resource)
         if old_contents is not None:
-            perform_soi_on_changed_scopes(self.project, resource, old_contents)
+            perform_soa_on_changed_scopes(self.project, resource, old_contents)
 
     def is_python_file(self, resource):
         if resource.is_folder():
             return self.class_lines
 
 
-def perform_soi_on_changed_scopes(project, resource, old_contents):
+def perform_soa_on_changed_scopes(project, resource, old_contents):
     pycore = project.pycore
     if resource.exists() and pycore.is_python_file(resource):
         try:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.