Patch #1552024: add decorator support to unparse.py demo script.

This commit is contained in:
Georg Brandl 2006-10-27 20:39:43 +00:00
parent 112d1a64ac
commit 2756278304
2 changed files with 8 additions and 2 deletions

View file

@ -223,6 +223,9 @@ class Unparser:
def _FunctionDef(self, t):
self.write("\n")
for deco in t.decorators:
self.fill("@")
self.dispatch(deco)
self.fill("def "+t.name + "(")
self.dispatch(t.args)
self.write(")")