]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
get unparse to at least unparse its self
authorBenjamin Peterson <benjamin@python.org>
Tue, 19 Aug 2008 17:59:23 +0000 (17:59 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 19 Aug 2008 17:59:23 +0000 (17:59 +0000)
Demo/parser/unparse.py

index 7acc05d93f40a3fc30d3985ef956af94926ba6d9..bfb8a095eec81c053b8275f973bae93bc4745dec 100644 (file)
@@ -196,7 +196,7 @@ class Unparser:
         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 @@ class Unparser:
 
     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 + "(")