summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2015-04-20 07:19:40 -0700
committerEli Bendersky <eliben@gmail.com>2015-04-20 07:19:40 -0700
commit3c0c601d9239793d89194391b1d52a0f9013516c (patch)
treedd1c1dc8b14b3554e105aed9d0e0acd9c687479b /examples
parent43375bf83890a77b31f3971329de25fc0764a276 (diff)
downloadpycparser-3c0c601d9239793d89194391b1d52a0f9013516c.tar.gz
Cosmetic cleanups
Diffstat (limited to 'examples')
-rw-r--r--examples/c-to-c.py1
-rw-r--r--examples/cdecl.py4
2 files changed, 1 insertions, 4 deletions
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")
-