diff options
Diffstat (limited to 'Demo')
-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 6582487..d53a6c4 100644 --- a/Demo/parser/unparse.py +++ b/Demo/parser/unparse.py @@ -186,7 +186,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(" ") @@ -213,7 +213,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 + "(") |