[Python-checkins] r52489 - in python/branches/release25-maint: Demo/parser/unparse.py Misc/NEWS
georg.brandl
python-checkins at python.org
Fri Oct 27 22:39:48 CEST 2006
Author: georg.brandl
Date: Fri Oct 27 22:39:47 2006
New Revision: 52489
Modified:
python/branches/release25-maint/Demo/parser/unparse.py
python/branches/release25-maint/Misc/NEWS
Log:
Patch #1552024: add decorator support to unparse.py demo script.
(backport from rev. 52488)
Modified: python/branches/release25-maint/Demo/parser/unparse.py
==============================================================================
--- python/branches/release25-maint/Demo/parser/unparse.py (original)
+++ python/branches/release25-maint/Demo/parser/unparse.py Fri Oct 27 22:39:47 2006
@@ -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(")")
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Fri Oct 27 22:39:47 2006
@@ -57,6 +57,7 @@
- fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments
were transposed.
+
Extension Modules
-----------------
@@ -83,6 +84,7 @@
- Make regex engine raise MemoryError if allocating memory fails.
+
Library
-------
@@ -124,6 +126,12 @@
the close_fds arg to subprocess.Popen is not supported).
+Tools/Demos
+-----------
+
+- Patch #1552024: add decorator support to unparse.py demo script.
+
+
Tests
-----
More information about the Python-checkins
mailing list