From b16c4c5b83e6fd40af64a0a4ffbfca2767fde90b Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 8 Sep 2012 23:16:42 +0200 Subject: [PATCH] python SystemError got fixed -> http://hg.python.org/cpython/rev/0db75a55145a & http://bugs.python.org/issue15846 --- parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsing.py b/parsing.py index fd9da882..64d85152 100644 --- a/parsing.py +++ b/parsing.py @@ -161,8 +161,6 @@ class Scope(Simple): def add_docstr(self, string): """ Clean up a docstring """ self.docstr = cleandoc(literal_eval(string)) - # TODO raises a SystemError here, report: - #literal_eval(r"'\U'") def add_import(self, imp): self.imports.append(imp) @@ -872,6 +870,8 @@ class Call(Base): return call def generate_call_path(self): + """ Helps to get the order in which statements are executed. """ + # TODO include previous nodes? As an option? try: for name_part in self.name.names: yield name_part