[Python-checkins] r65861 - python/trunk/Demo/parser/unparse.py

benjamin.peterson python-checkins at python.org
Tue Aug 19 19:59:53 CEST 2008


Author: benjamin.peterson
Date: Tue Aug 19 19:59:23 2008
New Revision: 65861

Log:
get unparse to at least unparse its self

Modified:
   python/trunk/Demo/parser/unparse.py

Modified: python/trunk/Demo/parser/unparse.py
==============================================================================
--- python/trunk/Demo/parser/unparse.py	(original)
+++ python/trunk/Demo/parser/unparse.py	Tue Aug 19 19:59:23 2008
@@ -196,7 +196,7 @@
         self.dispatch(t.finalbody)
         self.leave()
 
-    def _excepthandler(self, t):
+    def _ExceptHandler(self, t):
         self.fill("except")
         if t.type:
             self.write(" ")
@@ -223,7 +223,7 @@
 
     def _FunctionDef(self, t):
         self.write("\n")
-        for deco in t.decorators:
+        for deco in t.decorator_list:
             self.fill("@")
             self.dispatch(deco)
         self.fill("def "+t.name + "(")


More information about the Python-checkins mailing list