diff options
author | Georg Brandl <georg@python.org> | 2006-10-27 20:39:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-10-27 20:39:43 (GMT) |
commit | 275627830424a51b1ef120fa749cd9a1c941c6e8 (patch) | |
tree | b04596e4965362a012cee235c5c47de443b6377f /Demo | |
parent | 112d1a64ac057bdf4d3ce82c3c797c35beee73f5 (diff) | |
download | cpython-275627830424a51b1ef120fa749cd9a1c941c6e8.zip cpython-275627830424a51b1ef120fa749cd9a1c941c6e8.tar.gz cpython-275627830424a51b1ef120fa749cd9a1c941c6e8.tar.bz2 |
Patch #1552024: add decorator support to unparse.py demo script.
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/parser/unparse.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ 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(")") |