#NEWLINE# def getParams( self , paramstring = sys . argv [ 2 ] ) : #NEWLINE# #INDENT# param = [ ] #NEWLINE# if ( len ( paramstring ) >= 2 ) : #NEWLINE# #INDENT# params = paramstring #NEWLINE# cleanedparams = params . replace ( '?' , '' ) #NEWLINE# if ( params [ ( len ( params ) - 1 ) ] == '/' ) : #NEWLINE# #INDENT# params = params [ 0 : ( len ( params ) - 2 ) ] #NEWLINE# #UNINDENT# pairsofparams = cleanedparams . split ( '&' ) #NEWLINE# param = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for i in range ( len ( pairsofparams ) ) : #NEWLINE# #INDENT# splitparams = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# splitparams = pairsofparams [ i ] . split ( '=' ) #NEWLINE# if ( len ( splitparams ) == 2 ) : #NEWLINE# #INDENT# param [ splitparams [ 0 ] ] = splitparams [ 1 ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return param