mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
just for safety
This commit is contained in:
@@ -221,14 +221,6 @@ class Scope(Simple):
|
||||
"""
|
||||
return not (self.imports or self.subscopes or self.statements)
|
||||
|
||||
def get_simple_for_line(self, line):
|
||||
""" Get the Simple objects, which are on the line. """
|
||||
simple = []
|
||||
for s in self.statements + self.imports:
|
||||
if s.line_nr <= line <= s.line_end:
|
||||
simple.append(s)
|
||||
return simple
|
||||
|
||||
def __repr__(self):
|
||||
try:
|
||||
name = self.name
|
||||
|
||||
Reference in New Issue
Block a user