python/lib/generator.py: prepare for python3
authorPaul Brossier <piem@piem.org>
Mon, 18 Apr 2016 21:23:27 +0000 (23:23 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 18 Apr 2016 21:23:27 +0000 (23:23 +0200)
python/lib/generator.py

index 90c145d..cf164a9 100755 (executable)
@@ -23,6 +23,7 @@ def get_cpp_objects():
           i += 1
 
   typedefs = filter(lambda y: y.startswith ('typedef struct _aubio'), cpp_output)
+  typedefs = list(typedefs)
 
   cpp_objects = [a.split()[3][:-1] for a in typedefs]