From: Benjamin Peterson Date: Tue, 19 Aug 2008 17:59:23 +0000 (+0000) Subject: get unparse to at least unparse its self X-Git-Tag: v2.6b3~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773;p=thirdparty%2FPython%2Fcpython.git get unparse to at least unparse its self --- diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py index 7acc05d93f40..bfb8a095eec8 100644 --- a/Demo/parser/unparse.py +++ b/Demo/parser/unparse.py @@ -196,7 +196,7 @@ class Unparser: self.dispatch(t.finalbody) self.leave() - def _excepthandler(self, t): + def _ExceptHandler(self, t): self.fill("except") if t.type: self.write(" ") @@ -223,7 +223,7 @@ class Unparser: def _FunctionDef(self, t): self.write("\n") - for deco in t.decorators: + for deco in t.decorator_list: self.fill("@") self.dispatch(deco) self.fill("def "+t.name + "(")