#NEWLINE# def _get_version( self , request ) : #NEWLINE# #INDENT# 'Verify the correct version request for this server.' #NEWLINE# try : #NEWLINE# #INDENT# version = request . get_parameter ( 'oauth_version' ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# version = VERSION #NEWLINE# #UNINDENT# if ( version and ( version != self . version ) ) : #NEWLINE# #INDENT# raise Error ( ( 'OAuth version %s not supported.' % str ( version ) ) ) #NEWLINE# #UNINDENT# return version