parse.pyc
1 o 2 ���cǩ � @ s� d Z ddlZddlZddlZddlZddlZg d�Zg d�Zg d�Zg d�Z g d�Z 3 g d�Zg d �Zd 4 Z g d�ZdZi Zd d� ZdZdZdd� Zeefdd�Zeefdd�Zdd� ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d ee�ZG d!d"� d"ee�Zdd#lmZ ed$d%�Zed&d'�Z ed(d)�Z!d*e_ d+ej"_ d,ej#_ d-e _ d.e j$_ d/e j%_ d0e j&_ d1e j'_ d2e j#_ d3e!_ e j$j e!j$_ e j%j e!j%_ e j&j e!j&_ d4e!j(_ e j'j e!j'_ e j#j e!j#_ eZ)G d5d$� d$ee�Z*G d6d&� d&e e�Z+G d7d(� d(e!e�Z,G d8d9� d9ee�Z-G d:d;� d;e e�Z.G d<d=� d=e!e�Z/d>d?� Z0e0� [0d�dBdC�Z1dDdE� Z2d�dFdG�Z3dHdI� Z4d�dJdK�Z5dLdM� Z6dNdO� Z7d�dPdQ�Z8dRdS� Z9dTZ:da;dUdV� Z<e�=dW�Z>d�dZd[�Z? \ ]d�d^d_�Z@ \ ]d�d`da�ZAd�dbdc�ZBeCdd�ZDeEeD�ZFi ZGG dedf� dfejH�ZId�dhdi�ZJd�djdk�ZKd�dldm�ZLd\d@ddeKfdndo�ZMdpdq� ZNdrds� ZOdtdu� ZPdvdw� ZQdaRdxdy� ZSdzd{� ZTdaUd|d}� ZVd~d� ZWd�d�� ZXd�d�� ZYd�d�� ZZd�d�� Z[da\d�d�� Z]d�d�d��Z^d�d�d��Z_d�d�� Z`d�d�� Zad�d�� Zbd�d�� Zcd�d�� Zdd�d�� Zed�d�� Zfd�d�� ZgdS )�ac Parse (absolute and relative) URLs. 5 6 urlparse module is based upon the following RFC specifications. 7 8 RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding 9 and L. Masinter, January 2005. 10 11 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter 12 and L.Masinter, December 1999. 13 14 RFC 2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. 15 Berners-Lee, R. Fielding, and L. Masinter, August 1998. 16 17 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998. 18 19 RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June 20 1995. 21 22 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. 23 McCahill, December 1994 24 25 RFC 3986 is considered the current standard and any future changes to 26 urlparse module should conform with it. The urlparse module is 27 currently not entirely compliant with this RFC due to defacto 28 scenarios for parsing, and for backward compatibility purposes, some 29 parsing quirks from older RFCs are retained. The testcases in 30 test_urlparse.py provides a good indicator of parsing behavior. 31 � N)�urlparse� 32 urlunparse�urljoin� urldefrag�urlsplit� 33 urlunsplit� urlencode�parse_qs� parse_qsl�quote� 34 quote_plus�quote_from_bytes�unquote�unquote_plus�unquote_to_bytes�DefragResult�ParseResult�SplitResult�DefragResultBytes�ParseResultBytes�SplitResultBytes)� �ftp�http�gopher�nntp�imap�wais�file�https�shttp�mms�prospero�rtsp�rtspu�sftp�svn�svn+ssh�ws�wss)r r r r r �telnetr r r r! r r �snewsr"