1
0
forked from VimPlug/jedi
This commit is contained in:
David Halter
2012-09-08 23:16:42 +02:00
parent 82a79154cf
commit b16c4c5b83

View File

@@ -161,8 +161,6 @@ class Scope(Simple):
def add_docstr(self, string): def add_docstr(self, string):
""" Clean up a docstring """ """ Clean up a docstring """
self.docstr = cleandoc(literal_eval(string)) self.docstr = cleandoc(literal_eval(string))
# TODO raises a SystemError here, report:
#literal_eval(r"'\U'")
def add_import(self, imp): def add_import(self, imp):
self.imports.append(imp) self.imports.append(imp)
@@ -872,6 +870,8 @@ class Call(Base):
return call return call
def generate_call_path(self): def generate_call_path(self):
""" Helps to get the order in which statements are executed. """
# TODO include previous nodes? As an option?
try: try:
for name_part in self.name.names: for name_part in self.name.names:
yield name_part yield name_part