#NEWLINE# @ classmethod #NEWLINE# def for_type( cls , repo_type , path ) : #NEWLINE# #INDENT# SubClass = cls . REPO_TYPES . get ( repo_type ) #NEWLINE# if ( SubClass is None ) : #NEWLINE# #INDENT# raise ValueError ( 'No subclass found for repo type {0}.' . format ( repo_type ) ) #NEWLINE# #UNINDENT# return SubClass ( path )