#NEWLINE# def register_color_model( name , model ) : #NEWLINE# #INDENT# assert isinstance ( model , str ) #NEWLINE# assert issubclass ( type ( model ) , ColorModel ) #NEWLINE# _color_models [ name ] = model