forked from VimPlug/jedi
python SystemError got fixed -> http://hg.python.org/cpython/rev/0db75a55145a & http://bugs.python.org/issue15846
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user