#NEWLINE# def __new__( cls , key , secret = None , secure = True , host = None , port = None , api_version = DEFAULT_API_VERSION , **kwargs ) : #NEWLINE# #INDENT# if ( cls is CloudSigmaNodeDriver ) : #NEWLINE# #INDENT# if ( api_version == '1.0' ) : #NEWLINE# #INDENT# cls = CloudSigma_1_0_NodeDriver #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( api_version == '2.0' ) : #NEWLINE# #INDENT# cls = CloudSigma_2_0_NodeDriver #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NotImplementedError ( ( 'Unsupported API version: %s' % api_version ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return super ( CloudSigmaNodeDriver , cls ) . __new__ ( cls )