diff options
author | Eli Bendersky <eliben@gmail.com> | 2015-04-20 07:19:40 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2015-04-20 07:19:40 -0700 |
commit | 3c0c601d9239793d89194391b1d52a0f9013516c (patch) | |
tree | dd1c1dc8b14b3554e105aed9d0e0acd9c687479b | |
parent | 43375bf83890a77b31f3971329de25fc0764a276 (diff) | |
download | pycparser-3c0c601d9239793d89194391b1d52a0f9013516c.tar.gz |
Cosmetic cleanups
-rw-r--r-- | examples/c-to-c.py | 1 | ||||
-rw-r--r-- | examples/cdecl.py | 4 | ||||
-rw-r--r-- | pycparser/c_generator.py | 2 | ||||
-rwxr-xr-x | tests/all_tests.py | 1 |
4 files changed, 1 insertions, 7 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") - diff --git a/pycparser/c_generator.py b/pycparser/c_generator.py index d605276..940c83f 100644 --- a/pycparser/c_generator.py +++ b/pycparser/c_generator.py @@ -397,5 +397,3 @@ class CGenerator(object): """ return isinstance(n,( c_ast.Constant, c_ast.ID, c_ast.ArrayRef, c_ast.StructRef, c_ast.FuncCall)) - - diff --git a/tests/all_tests.py b/tests/all_tests.py index 5503416..74761b6 100755 --- a/tests/all_tests.py +++ b/tests/all_tests.py @@ -18,4 +18,3 @@ suite = unittest.TestLoader().loadTestsFromNames( testresult = unittest.TextTestRunner(verbosity=1).run(suite) sys.exit(0 if testresult.wasSuccessful() else 1) - |