diff options
Diffstat (limited to 'as_string.py')
-rw-r--r-- | as_string.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/as_string.py b/as_string.py index 02a028a0..76051111 100644 --- a/as_string.py +++ b/as_string.py @@ -409,6 +409,10 @@ class AsStringVisitor3k(AsStringVisitor): excs = 'except' return '%s:\n%s' % (excs, self._stmt_list(node.body)) + def visit_nonlocal(self, node): + """return an astng.Nonlocal node as string""" + return 'nonlocal %s' % ', '.join(node.names) + def visit_raise(self, node): """return an astng.Raise node as string""" if node.exc: |