commit | a35f8e05382aa53b98f423b918ae5f4bd030923a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Oct 27 20:39:47 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Oct 27 20:39:47 2006 +0000 |
tree | 7a168448c630c4e24c8376d3b67bf044e3f65060 | |
parent | a0a50feea816fef21c525212dd867f7d7f3f9ab4 [diff] [blame] |
Patch #1552024: add decorator support to unparse.py demo script. (backport from rev. 52488)
diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py index 510cdb0..f4dd90c 100644 --- a/Demo/parser/unparse.py +++ b/Demo/parser/unparse.py
@@ -223,6 +223,9 @@ 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(")")