From: Georg Brandl Date: Fri, 27 Oct 2006 20:39:43 +0000 (+0000) Subject: Patch #1552024: add decorator support to unparse.py demo script. X-Git-Tag: v2.6a1~2514 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=275627830424a51b1ef120fa749cd9a1c941c6e8;p=thirdparty%2FPython%2Fcpython.git Patch #1552024: add decorator support to unparse.py demo script. --- diff --git a/Demo/parser/unparse.py b/Demo/parser/unparse.py index 510cdb07ba11..f4dd90c95ee0 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(")") diff --git a/Misc/NEWS b/Misc/NEWS index d11966781df5..05930e96da2f 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -156,6 +156,7 @@ Library - fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments were transposed. + Extension Modules ----------------- @@ -225,8 +226,10 @@ Documentation to a newly created list object and add notes that this isn't a good idea. -Tools ------ +Tools/Demos +----------- + +- Patch #1552024: add decorator support to unparse.py demo script. - Make auto-generated python.vim file list built-ins and exceptions in alphatbetical order. Makes output more deterministic and easier to tell if