%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/urllib/__pycache__/ |
Current File : //usr/local/lib/python3.8/urllib/__pycache__/parse.cpython-38.pyc |
U pa @ s d Z ddlZddlZddlZddlZddddddd d ddd ddddddddddgZddddddddd d!d"d#d$d%d&d'd(d)d*gZdddddd+dddd"d d!d,d#d$d%d-d'd(d&d.d/d0d)d*gZddd1d#ddd d!d$d%d2d3d"d&d4gZdd1d5d6d+ddd,d2d3g Z ddddd d!d"dd$d%d2d3gZ ddd1ddd6ddd d!d,dd#g Zd7Zd8d9d:gZ d;Zi Zd<d= Zd>Zd?Zd@dA ZeefdBdCZeefdDdEZdFdG ZG dHdI dIeZG dJdK dKeZG dLdM dMeZG dNdO dOeeZG dPdQ dQeeZddRlmZ eddSZeddTZeddUZ dVe_ dWej!_ dXej"_ dYe_ dZej#_ d[ej$_ d\ej%_ d]ej&_ d^ej"_ d_e _ ej#j e j#_ ej$j e j$_ ej%j e j%_ d`e j'_ ej&j e j&_ ej"j e j"_ eZ(G dad deeZ)G dbd deeZ*G dcd de eZ+G ddd deeZ,G ded deeZ-G dfd de eZ.dgdh Z/e/ [/ddjdZ0dkdl Z1ddmdnZ2dodp Z3dqdr Z4ddsdZ5dtd Z6dud Z7ddvdZ8dwd Z9dxZ:da;dyd Z<e=dzZ>dd}dZ?ddd Z@dddZAdddZBeCdZDeEeDZFi ZGG dd dejHZIdddZJddd ZKdddZLd~dddeKfdd ZMdd ZNdd ZOdd ZPdd ZQdaRdd ZSdd ZTdaUdd ZVdd ZWdd ZXdd ZYdd ZZdd Z[da\dd Z]dddZ^dddZ_dd Z`dd Zadd Zbdd Zcdd Zddd Zedd Zfdd ZgdS )ac Parse (absolute and relative) URLs. urlparse module is based upon the following RFC specifications. RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding and L. Masinter, January 2005. RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter and L.Masinter, December 1999. RFC 2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. Berners-Lee, R. Fielding, and L. Masinter, August 1998. RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998. RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June 1995. RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. McCahill, December 1994 RFC 3986 is considered the current standard and any future changes to urlparse module should conform with it. The urlparse module is currently not entirely compliant with this RFC due to defacto scenarios for parsing, and for backward compatibility purposes, some parsing quirks from older RFCs are retained. The testcases in test_urlparse.py provides a good indicator of parsing behavior. Nurlparse urlunparseurljoin urldefragurlsplit urlunsplit urlencodeparse_qs parse_qslquote quote_plusquote_from_bytesunquoteunquote_plusunquote_to_bytesDefragResultParseResultSplitResultDefragResultBytesParseResultBytesSplitResultBytes ZftphttpZgopherZnntpimapZwaisfileZhttpsZshttpZmmsZprosperoZrtspZrtspuZsftpZsvnzsvn+sshZwsZwssZtelnetZsnewsZrsyncZnfsZgitzgit+sshZhdlZsipZsipsZtelZmailtoZnewszAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-. c C s t t dS )z,Clear the parse cache and the quoters cache.N)_parse_cacheclear _safe_quoters r"