#NEWLINE# def makeUrlDict( urlstring ) : #NEWLINE# #INDENT# dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# pairs = urlstring . split ( '&' ) #NEWLINE# for pair in pairs : #NEWLINE# #INDENT# if ( len ( pair ) < 3 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# kv = pair . split ( '=' , 1 ) #NEWLINE# dict [ kv [ 0 ] ] = kv [ 1 ] #NEWLINE# #UNINDENT# return dict