from compiler import ast class Comment(ast.Node): def __init__(self, comment, lineno=None): self.lineno = lineno self.comment = comment def getChildren(self): return () def getChildNodes(self): return () def __repr__(self): return "Comment(%s)" % (repr(self.comment),)