def register_treebuilders_from(module):
 this_module = sys.modules['bs4.builder']
 for name in module.__all__:
  obj = getattr(module, name)
  if issubclass(obj, TreeBuilder):
   setattr(this_module, name, obj)
   this_module.__all__.append(name)
   this_module.builder_registry.register(obj)

def register_treebuilders_from ( module ) : this_module = sys . modules [ 'bs4.builder' ] for name in module . __all__ : obj = getattr ( module , name ) if issubclass ( obj , TreeBuilder ) : setattr ( this_module , name , obj ) this_module . __all__ . append ( name ) this_module . builder_registry . register ( obj )
copy treebuilders from the given module into this module .