mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
get unparse to at least unparse its self
This commit is contained in:
parent
6626099520
commit
7c972f971c
1 changed files with 2 additions and 2 deletions
|
@ -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 + "(")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue