Changes in python/lib/generator.py [8b8a020:52ca8a3]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/generator.py
r8b8a020 r52ca8a3 4 4 5 5 import os, sys, shutil 6 from .gen_pyobject import write_msg, gen_new_init, gen_do, gen_members, gen_methods, gen_finish6 from gen_pyobject import write_msg, gen_new_init, gen_do, gen_members, gen_methods, gen_finish 7 7 8 8 def get_cpp_objects(): … … 12 12 cpp_output = filter(lambda y: len(y) > 1, cpp_output) 13 13 cpp_output = filter(lambda y: not y.startswith('#'), cpp_output) 14 cpp_output = list(cpp_output)15 14 16 15 i = 1 … … 87 86 object_methods = [a.strip() for a in object_methods] 88 87 object_methods = filter(lambda x: not x.startswith('typedef'), object_methods) 89 object_methods = list(object_methods)90 88 #for method in object_methods: 91 89 # write_msg(method) 92 new_methods = list(filter( 93 lambda x: 'new_'+object_name in x, object_methods)) 90 new_methods = filter(lambda x: 'new_'+object_name in x, object_methods) 94 91 if len(new_methods) > 1: 95 92 write_msg("-- WARNING: more than one new method for", object_name) … … 102 99 write_msg(method) 103 100 104 del_methods = list(filter( 105 lambda x: 'del_'+object_name in x, object_methods)) 101 del_methods = filter(lambda x: 'del_'+object_name in x, object_methods) 106 102 if len(del_methods) > 1: 107 103 write_msg("-- WARNING: more than one del method for", object_name) … … 111 107 write_msg("-- WARNING: no del method for", object_name) 112 108 113 do_methods = list(filter( 114 lambda x: object_name+'_do' in x, object_methods)) 109 do_methods = filter(lambda x: object_name+'_do' in x, object_methods) 115 110 if len(do_methods) > 1: 116 111 pass … … 141 136 other_methods = filter(lambda x: x not in get_methods, other_methods) 142 137 other_methods = filter(lambda x: x not in set_methods, other_methods) 143 other_methods = list(other_methods)144 138 145 139 if len(other_methods) > 0:
Note: See TracChangeset
for help on using the changeset viewer.