From 3c0c601d9239793d89194391b1d52a0f9013516c Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 20 Apr 2015 07:19:40 -0700 Subject: Cosmetic cleanups --- examples/c-to-c.py | 1 - examples/cdecl.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/c-to-c.py b/examples/c-to-c.py index 2d3484c..a92aeee 100644 --- a/examples/c-to-c.py +++ b/examples/c-to-c.py @@ -60,4 +60,3 @@ if __name__ == "__main__": translate_to_c(sys.argv[1]) else: print("Please provide a filename as argument") - diff --git a/examples/cdecl.py b/examples/cdecl.py index e885e40..58721d1 100644 --- a/examples/cdecl.py +++ b/examples/cdecl.py @@ -16,7 +16,7 @@ # => # ar is a pointer to array[10] of pointer to const Node # -# Copyright (C) 2008-2013, Eli Bendersky +# Copyright (C) 2008-2015, Eli Bendersky # License: BSD #----------------------------------------------------------------- import sys @@ -56,7 +56,6 @@ def _explain_decl_node(decl_node): """ Receives a c_ast.Decl note and returns its explanation in English. """ - #~ print decl_node.show() storage = ' '.join(decl_node.storage) + ' ' if decl_node.storage else '' return (decl_node.name + @@ -105,4 +104,3 @@ if __name__ == "__main__": print("Explaining the declaration: " + c_decl + "\n") print(explain_c_declaration(c_decl) + "\n") - -- cgit v1.2.1