Commits

Anonymous committed 0500223

evaluate: renamed get_primary_and_pyname_in_scope to eval_str2

Comments (0)

Files changed (1)

rope/base/evaluate.py

 
 
 def eval_str(holding_scope, name):
-    return get_primary_and_pyname_in_scope(holding_scope, name)[1]
+    return eval_str2(holding_scope, name)[1]
 
 
-def get_primary_and_pyname_in_scope(holding_scope, name):
+def eval_str2(holding_scope, name):
     try:
         # parenthesizing for handling cases like 'a_var.\nattr'
         node = ast.parse('(%s)' % name)
             name = self.word_finder.get_from_aliased(offset)
         else:
             name = self.word_finder.get_primary_at(offset)
-        return get_primary_and_pyname_in_scope(holding_scope, name)
+        return eval_str2(holding_scope, name)
 
     def get_enclosing_function(self, offset):
         function_parens = self.word_finder.find_parens_start_from_inside(offset)
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.