prevent SystemError from happening through literal_eval

This commit is contained in:
David Halter
2012-09-01 09:44:35 +02:00
parent 2ed7bbf5da
commit 94f2d5e263
2 changed files with 3 additions and 1 deletions

View File

@@ -154,6 +154,8 @@ 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)