summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
Diffstat (limited to 'Demo')
-rw-r--r--Demo/parser/unparse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py
index f3a5ffe..32acbed 100644
--- a/Demo/parser/unparse.py
+++ b/Demo/parser/unparse.py
@@ -213,6 +213,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(")")