diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-19 17:59:23 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-19 17:59:23 (GMT) |
commit | 7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773 (patch) | |
tree | 4c6adc164366734bbd6402392a6ca9d7f1e5c664 | |
parent | 66260995205ccdabbe4b8e4b2146634e7c0b90d8 (diff) | |
download | cpython-7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773.zip cpython-7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773.tar.gz cpython-7c972f971ce46fb2a0c6e0b49265b8d4ef2a0773.tar.bz2 |
get unparse to at least unparse its self
-rw-r--r-- | Demo/parser/unparse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py index 7acc05d..bfb8a09 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 + "(") |