#NEWLINE# def urljoin_rfc( base , ref , encoding = 'utf-8' ) : #NEWLINE# #INDENT# "\n    .. warning::\n\n        This function is deprecated and will be removed in future.\n        Please use ``urlparse.urljoin`` instead.\n\n    Same as urlparse.urljoin but supports unicode values in base and ref\n    parameters (in which case they will be converted to str using the given\n    encoding).\n\n    Always returns a str.\n\n    >>> import w3lib.url\n    >>> w3lib.url.urljoin_rfc('http://www.example.com/path/index.html', u'/otherpath/index2.html')\n    'http://www.example.com/otherpath/index2.html'\n    >>>\n\n    >>> w3lib.url.urljoin_rfc('http://www.example.com/path/index.html', u'fran\\u00e7ais/d\\u00e9part.htm')\n    'http://www.example.com/path/fran\\xc3\\xa7ais/d\\xc3\\xa9part.htm'\n    >>>\n\n\n    " #NEWLINE# warnings . warn ( 'w3lib.url.urljoin_rfc is deprecated, use urlparse.urljoin instead' , DeprecationWarning ) #NEWLINE# str_base = to_bytes ( base , encoding ) #NEWLINE# str_ref = to_bytes ( ref , encoding ) #NEWLINE# return urljoin ( str_base , str_ref )