#NEWLINE# def urlunsplit( parts ) : #NEWLINE# #INDENT# ( scheme , authority , path , query , fragment ) = parts #NEWLINE# r = [ ] #NEWLINE# append = r . append #NEWLINE# if ( scheme is not None ) : #NEWLINE# #INDENT# append ( scheme ) #NEWLINE# append ( ':' ) #NEWLINE# #UNINDENT# if ( authority is not None ) : #NEWLINE# #INDENT# append ( '//' ) #NEWLINE# append ( authority ) #NEWLINE# #UNINDENT# append ( path ) #NEWLINE# if ( query is not None ) : #NEWLINE# #INDENT# append ( '?' ) #NEWLINE# append ( query ) #NEWLINE# #UNINDENT# if ( fragment is not None ) : #NEWLINE# #INDENT# append ( '#' ) #NEWLINE# append ( authority ) #NEWLINE# #UNINDENT# return '' . join ( r )