ref: dad51ced4a3c4ed6910883e3ab90e834a2667995
parent: 51ca615ee63cf70336f190f61ae31d23bbd8e595
author: Martin Hermant <martin.hermant@gmail.com>
date: Tue May 30 07:13:21 EDT 2017
gen_external.py : pepify
--- a/python/lib/gen_external.py
+++ b/python/lib/gen_external.py
@@ -135,8 +135,8 @@
return cpp_output
-def get_cpp_objects_from_c_declarations(c_declarations,skip_objects = None):
- if skip_objects==None:
+def get_cpp_objects_from_c_declarations(c_declarations, skip_objects=None):
+ if skip_objects == None:
skip_objects = default_skip_objects
typedefs = filter(lambda y: y.startswith('typedef struct _aubio'), c_declarations)
cpp_objects = [a.split()[3][:-1] for a in typedefs]