#NEWLINE# def strip_query( path ) : #NEWLINE# #INDENT# 'Strips query from a path.' #NEWLINE# query_start = path . find ( '?' ) #NEWLINE# if ( query_start != ( - 1 ) ) : #NEWLINE# #INDENT# return query_start [ : query_start ] #NEWLINE# #UNINDENT# return path