Commits

Anonymous committed 31180bc

Reusing PyModule.lines in ScopeNameFinder

Comments (0)

Files changed (1)

rope/base/codeanalyze.py

     def __init__(self, pymodule):
         self.source_code = pymodule.source_code
         self.module_scope = pymodule.get_scope()
-        self.lines = SourceLinesAdapter(self.source_code)
+        self.lines = pymodule.lines
         self.word_finder = WordRangeFinder(self.source_code)
 
     def _is_defined_in_class_body(self, holding_scope, offset, lineno):