Anonymous avatar Anonymous committed 3ed21b7

some random import fixes

Comments (0)

Files changed (7)

rope/base/builtins.py

 import __builtin__
 import inspect
 
-from rope.base import pynames, pyobjects, evaluate
+import rope.base.evaluate
+from rope.base import pynames, pyobjects
 
 
 class BuiltinClass(pyobjects.AbstractClass):
             return
         new_dict = context.get_pynames(['self', 'd'])[1]
         if new_dict and isinstance(new_dict.get_object().get_type(), Dict):
-            args = evaluate.ObjectArguments([new_dict])
+            args = rope.base.evaluate.ObjectArguments([new_dict])
             items = new_dict.get_object().get_attribute('popitem').\
                     get_object().get_returned_object(args)
             context.save_per_name(items)
         self.scope = scope
 
     def get_returned_object(self, args):
-        result = evaluate.get_statement_result(self.scope, self.node.body)
+        result = rope.base.evaluate.get_statement_result(self.scope,
+                                                         self.node.body)
         if result is not None:
             return result.get_object()
         else:
     if pyname is None:
         return None
     seq = pyname.get_object()
-    args = evaluate.ObjectArguments([pyname])
+    args = rope.base.evaluate.ObjectArguments([pyname])
     if '__iter__' in seq.get_attributes():
         iter = seq.get_attribute('__iter__').get_object().\
                get_returned_object(args)

rope/base/defpyobjects.py

 import rope.base.codeanalyze
 import rope.base.evaluate
+import rope.base.builtins
 import rope.base.oi.objectinfer
 import rope.base.pyscopes
 from rope.base import (defpynames as pynames, exceptions,
         'classmethod' strs.
 
         """
-        import rope.base.evaluate
-        import rope.base.builtins
         scope = self.parent.get_scope()
         if isinstance(self.parent, PyClass):
             for decorator in self.get_ast().decorators:

rope/base/evaluate.py

+import rope.base.exceptions
 import rope.base.pynames
-import rope.base.exceptions
 import rope.base.pyobjects
 from rope.base import ast, astutils, exceptions
 

rope/base/oi/objectinfer.py

 
 """
 
-import rope.base
+import rope.base.builtins
+import rope.base.pynames
+import rope.base.pyobjects
 from rope.base import evaluate
 
 

rope/base/oi/staticoi.py

 import rope.base.ast
+import rope.base.oi.objectinfer
+import rope.base.pynames
 from rope.base import pyobjects, evaluate, astutils
 
 

rope/base/project.py

 import rope.base.resourceobserver
 from rope.base import exceptions, taskhandle, prefs, history
 from rope.base.resources import File, Folder
-from rope.base.resourceobserver import (ResourceObserver,
-                                        FilteredResourceObserver)
+from rope.base.resourceobserver import *
 
 
 class _Project(object):

rope/refactor/similarfinder.py

 """This module can be used for finding similar code"""
 import re
 
-from rope.base import codeanalyze, evaluate, exceptions, pyobjects, ast
+from rope.base import codeanalyze, evaluate, exceptions, ast
 from rope.refactor import patchedast, sourceutils, occurrences
 
 
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.