#NEWLINE# def get( self , task ) : #NEWLINE# #INDENT# "Returns the `task` or its class, if creation hasn't happened yet." #NEWLINE# if isinstance ( task , six . string_types ) : #NEWLINE# #INDENT# name = task #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert issubclass ( self , VTask ) #NEWLINE# name = task . __name__ #NEWLINE# #UNINDENT# if self . _did_create : #NEWLINE# #INDENT# return self . _created_names . get ( name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _registered_names . get ( name )