def add_library(self, library): wrapped_library = Library() wrapped_library.filters = library.filters for name, tag_compiler in library.tags.items(): wrapped_library.tags[name] = self.wrap_compile_function( name, tag_compiler) self.parser.add_library(wrapped_library)
def add_library(self, library): wrapped_library = Library() wrapped_library.filters = library.filters for name, tag_compiler in library.tags.items(): wrapped_library.tags[name] = self.wrap_compile_function(name, tag_compiler) self.parser.add_library(wrapped_library)