#NEWLINE# def __new__( cls , path , query = None , host = None , port = None , schema = None , show_host = True ) : #NEWLINE# #INDENT# '\n        path - urlencoded string or unicode object (not encoded at all)\n        ' #NEWLINE# path = ( path if isinstance ( path , str ) else urlquote ( path ) ) #NEWLINE# query = ( MultiDict ( query ) if query else MultiDict ( ) ) #NEWLINE# host = ( host or '' ) #NEWLINE# port = ( port or '' ) #NEWLINE# schema = ( schema or 'http' ) #NEWLINE# self = str . __new__ ( cls , construct_url ( path , schema , ( host if show_host else '' ) , port , schema ) ) #NEWLINE# self . path = path #NEWLINE# self . query = query #NEWLINE# self . host = host #NEWLINE# self . port = port #NEWLINE# self . schema = schema #NEWLINE# self . show_host = show_host #NEWLINE# return self