OwlCyberSecurity - MANAGER
Edit File: nntplib.cpython-33.pyc
� ��f"���c���������������@���s(��d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�y�d�d�l�Z�Wn�e�k �rl�e�Z �Yn�Xe �Z �d�d�l�m�Z �d�d�l�m�Z�d�d�d�d�d �d �d�g�Z�d�Z�Gd �d����d�e���Z�Gd�d����d�e���Z�Gd�d����d�e���Z�Gd�d����d�e���Z�Gd�d ����d �e���Z�Gd�d ����d �e���Z�d�Z�d�Z�d�d�d�d�d�d�d�d�d�d�d �d!�h�Z�d"�d#�d$�d%�d&�d'�d(�g�Z�i�d'�d)�6d(�d*�6Z�d+�Z�e�j�d,�d-�d.�d/�d0�g���Z�e�j�d1�d2�d3�d*�g���Z �d4�d����Z�d5�d6����Z!�e"�d7�d8���Z#�e"�d9�d:���Z$�e�d;�d<���Z%�e �r6d=�d>����Z&�n��Gd?�d@����d@���Z'�GdA�d����d�e'���Z(�e �r�GdB�dC����dC�e'���Z)�e�j*�dC���n��e+�dD�k�r$d�d�l,�Z,�d�dE�l-�m.�Z.�e,�j/�dF�dG���Z0�e0�j1�dH�dI�dJ�dK�dL�dM��e0�j1�dN�dO�dJ�dP�dL�dQ��e0�j1�dR�dS�dJ�dT�dU�e2�dL�dV�e�e�f��e0�j1�dW�dX�dJ�dY�dU�e2�dL�dZ��e0�j1�d[�d\�d]�d^�dJ�e�dL�d_��e0�j3����Z4�e4�j5�Z5�e4�j�r�e5�dT�k�r�e�Z5�n��e(�d`�e4�j6�da�e5���Z7�n.�e5�dT�k�r�e�Z5�n��e)�d`�e4�j6�da�e5���Z7�e7�j8����Z9�db�e9�k�re7�j:����n��e7�j;�e4�j;���\�Z<�Z=�Z>�Z?�Z@�eA�dc�e@�dd�e=�de�e>�df�e?���dg�dh����ZB�eC�e2�e?���e4�jD�dT���Z>�e7�jE�e>�e?���\�Z<�ZF�x��eF�D]z�\�ZG�ZH�e�eH�d#���jI�di�dT���d�ZJ�e�eH�d"���ZK�e2�eH�d(���ZL�eA�dj�jM�eG�eB�eJ�dk���eB�eK�dl���eL�����q�We7�jN����n��d�S(m���u���An NNTP client class based on: - RFC 977: Network News Transfer Protocol - RFC 2980: Common NNTP Extensions - RFC 3977: Network News Transfer Protocol (version 2) Example: >>> from nntplib import NNTP >>> s = NNTP('news') >>> resp, count, first, last, name = s.group('comp.lang.python') >>> print('Group', name, 'has', count, 'articles, range', first, 'to', last) Group comp.lang.python has 51 articles, range 5770 to 5821 >>> resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last)) >>> resp = s.quit() >>> Here 'resp' is the server response line. Error responses are turned into exceptions. To post an article from a file: >>> f = open(filename, 'rb') # file containing article, including header >>> resp = s.post(f) >>> For descriptions of all methods, read the comments in the code below. Note that all arguments and return values representing article numbers are strings, not numbers, since they are rarely used for calculations. i����N(���u ���decode_header(���u���_GLOBAL_DEFAULT_TIMEOUTu���NNTPu���NNTPReplyErroru���NNTPTemporaryErroru���NNTPPermanentErroru���NNTPProtocolErroru ���NNTPDataErroru ���decode_headeri���c�������������B���s&���|��Ee��Z�d��Z�d�Z�d�d����Z�d�S(���u ���NNTPErroru%���Base class for all nntplib exceptionsc�������������G���sC���t��j�|��|���y�|�d�|��_�Wn�t�k �r>�d�|��_�Yn�Xd��S(���Ni����u���No response given(���u ���Exceptionu���__init__u���responseu ���IndexError(���u���selfu���args(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���__init__b���s ���� u���NNTPError.__init__N(���u���__name__u ���__module__u���__qualname__u���__doc__u���__init__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���NNTPError`���s���u ���NNTPErrorc�������������B���s���|��Ee��Z�d��Z�d�Z�d�S(���u���NNTPReplyErroru���Unexpected [123]xx replyN(���u���__name__u ���__module__u���__qualname__u���__doc__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTPReplyErrori���s���c�������������B���s���|��Ee��Z�d��Z�d�Z�d�S(���u���NNTPTemporaryErroru ���4xx errorsN(���u���__name__u ���__module__u���__qualname__u���__doc__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTPTemporaryErrorm���s���c�������������B���s���|��Ee��Z�d��Z�d�Z�d�S(���u���NNTPPermanentErroru ���5xx errorsN(���u���__name__u ���__module__u���__qualname__u���__doc__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTPPermanentErrorq���s���c�������������B���s���|��Ee��Z�d��Z�d�Z�d�S(���u���NNTPProtocolErroru"���Response does not begin with [1-5]N(���u���__name__u ���__module__u���__qualname__u���__doc__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTPProtocolErroru���s���c�������������B���s���|��Ee��Z�d��Z�d�Z�d�S(���u ���NNTPDataErroru���Error in response dataN(���u���__name__u ���__module__u���__qualname__u���__doc__(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���NNTPDataErrory���s���iw���i3��u���100u���101u���211u���215u���220u���221u���222u���224u���225u���230u���231u���282u���subjectu���fromu���dateu ���message-idu ���referencesu���:bytesu���:linesu���bytesu���liness��� u ���GroupInfou���groupu���lastu���firstu���flagu���ArticleInfou���numberu ���message_idc�������������C���sk���g��}�xU�t��|����D]G�\�}�}�t�|�t���rM�|�j�|�j�|�pC�d�����q�|�j�|���q�Wd�j�|���S(���uw���Takes an unicode string representing a munged header value and decodes it as a (possibly non-ASCII) readable value.u���asciiu����(���u���_email_decode_headeru ���isinstanceu���bytesu���appendu���decodeu���join(���u ���header_stru���partsu���vu���enc(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���decode_header����s����c�������������C���s����g��}�x��|��D]��}�|�d�d�k�rR�|�d�d���j��d���\�}�}�}�d�|�}�n�|�j��d���\�}�}�}�|�j����}�t�j�|�|���}�|�j�|���q �Wt�}�t�|���t�|���k��r��t�d�����n��|�d�t�|�����|�k�r��t�d�����n��|�S(���u����Parse a list of string representing the response to LIST OVERVIEW.FMT and return a list of header/metadata names. Raises NNTPDataError if the response is not compliant (cf. RFC 3977, section 8.4).i����u���:i���Nu$���LIST OVERVIEW.FMT response too shortu*���LIST OVERVIEW.FMT redefines default fields(���u ���partitionu���loweru���_OVERVIEW_FMT_ALTERNATIVESu���getu���appendu���_DEFAULT_OVERVIEW_FMTu���lenu ���NNTPDataError(���u���linesu���fmtu���lineu���nameu���_u���suffixu���defaults(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_parse_overview_fmt����s���� " u���_parse_overview_fmtc�������������C���s6��t��t���}�g��}�x|��D]}�i��}�|�j�d���^�}�}�t�|���}�x��t�|���D]��\�} �} �| �t��|���k�rw�qS�n��|�| �}�|�j�d���}�| �|�k�r |�r |�d�} �| �r��| �d�t��| �����j����| �k�r��t�d�����n��| �r�| �t��| ���d���n�d�} �n��| �|�|�| �<qS�W|�j �|�|�f���q�W|�S(���uY���Parse the response to a OVER or XOVER command according to the overview format `fmt`.u��� u���:u���: Nu?���OVER/XOVER response doesn't include names of additional headers( ���u���lenu���_DEFAULT_OVERVIEW_FMTu���splitu���intu ���enumerateu ���startswithu���loweru ���NNTPDataErroru���Noneu���append(���u���linesu���fmtu���data_process_funcu ���n_defaultsu���overviewu���lineu���fieldsu���article_numberu���tokensu���iu���tokenu ���field_nameu���is_metadatau���h(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_parse_overview����s&���� (%u���_parse_overviewc�������������C���s��|�d�k�r/�|��d �d���}�|��d�d ���}��n��t�|�d�d�����}�t�|�d�d�����}�t�|�d�d�����}�t�|��d�d�����}�t�|��d�d �����}�t�|��d�d�����}�|�d�k��r��|�d�7}�n�|�d�k��r��|�d�7}�n��t�j�|�|�|�|�|�|���S(���u����Parse a pair of (date, time) strings, and return a datetime object. If only the date is given, it is assumed to be date and time concatenated together (e.g. response to the DATE command). i���Ni���i���iF���i���id���il��i����i����i����i����i����i����(���u���Noneu���intu���datetime(���u���date_stru���time_stru���hoursu���minutesu���secondsu���yearu���monthu���day(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_parse_datetime����s���� u���_parse_datetimec�������������C���st���t��|��t�j���s�d�}�n�d�j�|����}�|��j�}�|�rX�|�d�}�d�j�|�|����}�n�d�j�|�|����}�|�|�f�S(���uP��Format a date or datetime object as a pair of (date, time) strings in the format required by the NEWNEWS and NEWGROUPS commands. If a date object is passed, the time is assumed to be midnight (00h00). The returned representation depends on the legacy flag: * if legacy is False (the default): date has the YYYYMMDD format and time the HHMMSS format * if legacy is True: date has the YYMMDD format and time the HHMMSS format. RFC 3977 compliant servers should understand both formats; therefore, legacy is only needed when talking to old servers. u���000000u(���{0.hour:02d}{0.minute:02d}{0.second:02d}id���u���{0:02d}{1.month:02d}{1.day:02d}u���{0:04d}{1.month:02d}{1.day:02d}(���u ���isinstanceu���datetimeu���formatu���year(���u���dtu���legacyu���time_stru���yu���date_str(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_unparse_datetime����s���� u���_unparse_datetimec�������������C���s@���|�d�k�r3�t�j�t�j���}�|�j�t�j�O_�n��|�j�|����S(���u����Wrap a socket in SSL/TLS. Arguments: - sock: Socket to wrap - context: SSL context to use for the encrypted connection Returns: - sock: New, encrypted socket. N(���u���Noneu���sslu ���SSLContextu���PROTOCOL_SSLv23u���optionsu���OP_NO_SSLv2u���wrap_socket(���u���socku���context(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_encrypt_on��s����u���_encrypt_onc�������������B���s���|��Ee��Z�d��Z�d�Z�d�Z�df�e�d�d���Z�d�d����Z�d�d����Z �d �d ����Z �d�d����Z�d �d����Z�e�Z �d�d����Z�d�d����Z�dg�d�d���Z�d�d����Z�df�d�d���Z�d�d����Z�df�d�d���Z�df�d�d���Z�d�d ����Z�d!�d"����Z�d#�d$����Z�d%�df�d&�d'���Z�d%�df�d(�d)���Z�d%�df�df�d*�d+��Z�d,�d-����Z�d.�d/����Z�d0�d1����Z�d2�d3����Z �d%�df�d4�d5���Z!�d6�d7����Z"�d8�d9����Z#�df�d:�d;���Z$�d<�d=����Z%�d>�d?����Z&�df�d@�dA���Z'�d%�df�df�dB�dC��Z(�d%�df�df�dD�dE��Z)�d%�df�df�dF�dG��Z*�dH�dI����Z+�d%�df�dJ�dK���Z,�d%�df�dL�dM���Z-�d%�df�dN�dO���Z.�d%�df�dP�dQ���Z/�dR�dS����Z0�dT�dU����Z1�dV�dW����Z2�dX�dY����Z3�dZ�d[����Z4�d\�d]����Z5�d^�d_����Z6�df�df�dg�d`�da���Z7�db�dc����Z8�e9�r�df�dd�de���Z:�n��df�S(h���u ���_NNTPBaseu���utf-8u���surrogateescapec�������������C���s����|�|��_��|�|��_�d�|��_�|��j����|��_�d�|��_�|��j����d�|��_ �|�r��d�|��j�k�r��|��j ����|��j �s��d�|��_�|��j����q��n��d�|��_�d�|��_�d�S(���uS��Initialize an instance. Arguments: - file: file-like object (open for read/write in binary mode) - host: hostname of the server - readermode: if true, send 'mode reader' command after connecting. - timeout: timeout (in seconds) used for socket connections readermode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific commands, such as `group'. If you get unexpected NNTPPermanentErrors, you might need to set readermode. i����u���READERNF( ���u���hostu���fileu ���debuggingu���_getrespu���welcomeu���Noneu���_capsu���getcapabilitiesu���Falseu���readermode_afterauthu���_setreadermodeu���tls_onu ���authenticated(���u���selfu���fileu���hostu ���readermodeu���timeout(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���__init__:��s���� u���_NNTPBase.__init__c�������������C���s���|��S(���N(����(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���__enter__i��s����u���_NNTPBase.__enter__c����������������sl������f�d�d����}�|����rh�z0�y����j�����Wn�t�j�t�f�k �rI�Yn�XWd��|����rd����j����n��Xn��d��S(���Nc������������������s ���t�����d���S(���Nu���file(���u���hasattr(����(���u���self(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���<lambda>m��s����u$���_NNTPBase.__exit__.<locals>.<lambda>(���u���quitu���socketu���erroru���EOFErroru���_close(���u���selfu���argsu���is_connected(����(���u���selfu,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���__exit__l��s���� u���_NNTPBase.__exit__c�������������C���s)���|��j��r"�t�d�t�|��j�����n��|��j�S(���u����Get the welcome message from the server (this is read and squirreled away by __init__()). If the response code is 200, posting is allowed; if it 201, posting is not allowed.u ���*welcome*(���u ���debuggingu���printu���repru���welcome(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���getwelcomew��s���� �u���_NNTPBase.getwelcomec���������� ���C���s����|��j��d�k�r��d�|��_�d�|��_�y�|��j����\�}�}�Wn!�t�t�f�k �rZ�i��|��_��Yq��X|�|��_��d�|�k�r��t�t�t �|�d�����|��_�n��d�|�k�r��d�j �|�d���|��_�q��n��|��j��S(���u����Get the server capabilities, as read by __init__(). If the CAPABILITIES command is not supported, an empty dict is returned.i���u���VERSIONu���IMPLEMENTATIONu��� N(���u���_capsu���Noneu���nntp_versionu���nntp_implementationu���capabilitiesu���NNTPPermanentErroru���NNTPTemporaryErroru���maxu���mapu���intu���join(���u���selfu���respu���caps(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���getcapabilities���s���� u���_NNTPBase.getcapabilitiesc�������������C���s ���|�|��_��d�S(���u����Set the debugging level. Argument 'level' means: 0: no debugging output (default) 1: print commands and responses but not body text etc. 2: also print raw lines read and sent before stripping CR/LFN(���u ���debugging(���u���selfu���level(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���set_debuglevel���s����u���_NNTPBase.set_debuglevelc�������������C���sP���|�t��}�|��j�d�k�r/�t�d�t�|�����n��|��j�j�|���|��j�j����d�S(���uf���Internal: send one line to the server, appending CRLF. The `line` must be a bytes-like object.i���u���*put*N(���u���_CRLFu ���debuggingu���printu���repru���fileu���writeu���flush(���u���selfu���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_putline���s ���� �u���_NNTPBase._putlinec�������������C���sH���|��j��r�t�d�t�|�����n��|�j�|��j�|��j���}�|��j�|���d�S(���ul���Internal: send one command to the server (through _putline()). The `line` must be an unicode string.u���*cmd*N(���u ���debuggingu���printu���repru���encodeu���encodingu���errorsu���_putline(���u���selfu���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_putcmd���s���� �u���_NNTPBase._putcmdc�������������C���s����|��j��j�t�d���}�t�|���t�k�r7�t�d�����n��|��j�d�k�r\�t�d�t�|�����n��|�sk�t���n��|�r��|�d�d���t �k�r��|�d�d���}�q��|�d�d���t �k�r��|�d�d ���}�q��n��|�S( ���u����Internal: return one line from the server, stripping _CRLF. Raise EOFError if the connection is closed. Returns a bytes object.i���u ���line too longu���*get*i���Ni����i����i����i����( ���u���fileu���readlineu���_MAXLINEu���lenu ���NNTPDataErroru ���debuggingu���printu���repru���EOFErroru���_CRLF(���u���selfu ���strip_crlfu���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_getline���s����� u���_NNTPBase._getlinec�������������C���s����|��j�����}�|��j�r+�t�d�t�|�����n��|�j�|��j�|��j���}�|�d�d���}�|�d�k�rn�t�|�����n��|�d�k�r��t�|�����n��|�d�k�r��t �|�����n��|�S(���u����Internal: get a response from the server. Raise various errors if the response indicates an error. Returns an unicode string.u���*resp*Ni���u���4u���5u���123( ���u���_getlineu ���debuggingu���printu���repru���decodeu���encodingu���errorsu���NNTPTemporaryErroru���NNTPPermanentErroru���NNTPProtocolError(���u���selfu���respu���c(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_getresp���s���� �u���_NNTPBase._getrespc���������� ���C���sW��d�}�z0t�|�t�t�f���r4�t�|�d���}�}�n��|��j����}�|�d�d���t�k�re�t�|�����n��g��}�|�d�k �r��d�t�d�f�}�x��|��j �d���}�|�|�k�r��Pn��|�j�d���r��|�d�d���}�n��|�j�|���q��nW�d�}�xN�|��j ����}�|�|�k�rPn��|�j�d���r%|�d�d���}�n��|�j �|���q��Wd�|�rL|�j����n��X|�|�f�S( ���uQ��Internal: get a response plus following text from the server. Raise various errors if the response indicates an error. Returns a (response, lines) tuple where `response` is an unicode string and `lines` is a list of bytes objects. If `file` is a file-like object, it must be open in binary mode. u���wbNi���s���.s���. s���..i���F(���u���Noneu ���isinstanceu���stru���bytesu���openu���_getrespu ���_LONGRESPu���NNTPReplyErroru���_CRLFu���_getlineu���Falseu ���startswithu���writeu���appendu���close(���u���selfu���fileu ���openedFileu���respu���linesu���terminatorsu���lineu ���terminator(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_getlongresp���s8���� u���_NNTPBase._getlongrespc�������������C���s���|��j��|���|��j����S(���uW���Internal: send a command and get the response. Same return value as _getresp().(���u���_putcmdu���_getresp(���u���selfu���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���_shortcmd���s���� u���_NNTPBase._shortcmdc�������������C���s���|��j��|���|��j�|���S(���uo���Internal: send a command and get the response plus following text. Same return value as _getlongresp().(���u���_putcmdu���_getlongresp(���u���selfu���lineu���file(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_longcmd��s���� u���_NNTPBase._longcmdc����������������s?������j��|������j�|���\�}�}�|����f�d�d����|�D��f�S(���u����Internal: send a command and get the response plus following text. Same as _longcmd() and _getlongresp(), except that the returned `lines` are unicode strings rather than bytes objects. c����������������s(���g��|��]�}�|�j�����j����j�����q�S(����(���u���decodeu���encodingu���errors(���u���.0u���line(���u���self(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���<listcomp>��s��� u,���_NNTPBase._longcmdstring.<locals>.<listcomp>(���u���_putcmdu���_getlongresp(���u���selfu���lineu���fileu���respu���list(����(���u���selfu,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_longcmdstring ��s���� u���_NNTPBase._longcmdstringc�������������C���sw���y�|��j��SWn�t�k �r�Yn�Xy�|��j�d���\�}�}�Wn"�t�k �r]�t�d�d���}�Yn �Xt�|���}�|�|��_��|�S(���uq���Internal: get the overview format. Queries the server if not already done, else returns the cached value.u���LIST OVERVIEW.FMTN(���u���_cachedoverviewfmtu���AttributeErroru���_longcmdstringu���NNTPPermanentErroru���_DEFAULT_OVERVIEW_FMTu���_parse_overview_fmt(���u���selfu���respu���linesu���fmt(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_getoverviewfmt��s���� u���_NNTPBase._getoverviewfmtc�������������C���s���d�d����|�D��S(���Nc�������������S���s"���g��|��]�}�t��|�j���������q�S(����(���u ���GroupInfou���split(���u���.0u���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���<listcomp>&��s��� �u(���_NNTPBase._grouplist.<locals>.<listcomp>(����(���u���selfu���lines(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���_grouplist$��s����u���_NNTPBase._grouplistc�������������C���sR���i��}�|��j��d���\�}�}�x*�|�D]"�}�|�j����^�}�}�|�|�|�<q"�W|�|�f�S(���u!��Process a CAPABILITIES command. Not supported by all servers. Return: - resp: server response if successful - caps: a dictionary mapping capability names to lists of tokens (for example {'VERSION': ['2'], 'OVER': [], LIST: ['ACTIVE', 'HEADERS'] }) u���CAPABILITIES(���u���_longcmdstringu���split(���u���selfu���capsu���respu���linesu���lineu���nameu���tokens(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���capabilities(��s���� u���_NNTPBase.capabilitiesu���filec������������C���s����t��|�t�j�t�j�f���s9�t�d�j�|�j�j�������n��t�|�|��j�d�k����\�}�}�d�j�|�|���}�|��j �|�|���\�}�}�|�|��j �|���f�S(���u����Process a NEWGROUPS command. Arguments: - date: a date or datetime object Return: - resp: server response if successful - list: list of newsgroup names uA���the date parameter must be a date or datetime object, not '{:40}'i���u���NEWGROUPS {0} {1}(���u ���isinstanceu���datetimeu���dateu ���TypeErroru���formatu ���__class__u���__name__u���_unparse_datetimeu���nntp_versionu���_longcmdstringu ���_grouplist(���u���selfu���dateu���fileu���date_stru���time_stru���cmdu���respu���lines(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���newgroups6��s����u���_NNTPBase.newgroupsc������������C���s|���t��|�t�j�t�j�f���s9�t�d�j�|�j�j�������n��t�|�|��j�d�k����\�}�}�d�j�|�|�|���}�|��j �|�|���S(���u����Process a NEWNEWS command. Arguments: - group: group name or '*' - date: a date or datetime object Return: - resp: server response if successful - list: list of message ids uA���the date parameter must be a date or datetime object, not '{:40}'i���u���NEWNEWS {0} {1} {2}( ���u ���isinstanceu���datetimeu���dateu ���TypeErroru���formatu ���__class__u���__name__u���_unparse_datetimeu���nntp_versionu���_longcmdstring(���u���selfu���groupu���dateu���fileu���date_stru���time_stru���cmd(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���newnewsF��s����u���_NNTPBase.newnewsc������������C���sJ���|�d�k �r�d�|�}�n�d�}�|��j�|�|���\�}�}�|�|��j�|���f�S(���u@��Process a LIST or LIST ACTIVE command. Arguments: - group_pattern: a pattern indicating which groups to query - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of (group, last, first, flag) (strings) u���LIST ACTIVE u���LISTN(���u���Noneu���_longcmdstringu ���_grouplist(���u���selfu ���group_patternu���fileu���commandu���respu���lines(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���listV��s ���� u���_NNTPBase.listc�������������C���s����t��j�d���}�|��j�d�|���\�}�}�|�j�d���sS�|��j�d�|���\�}�}�n��i��}�xX�|�D]P�}�|�j�|�j������}�|�r`�|�j�d�d���\�} �} �|�s��| �S| �|�| �<q`�q`�W|�r��|�|�f�Sd�Sd��S(���Nu���^(?P<group>[^ ]+)[ ]+(.*)$u���LIST NEWSGROUPS u���215u���XGTITLE i���i���u����(���u���reu���compileu���_longcmdstringu ���startswithu���searchu���stripu���group(���u���selfu ���group_patternu ���return_allu���line_patu���respu���linesu���groupsu���raw_lineu���matchu���nameu���desc(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_getdescriptionse��s���� u���_NNTPBase._getdescriptionsc�������������C���s���|��j��|�d���S(���u���Get a description for a single group. If more than one group matches ('group' is a pattern), return the first. If no group matches, return an empty string. This elides the response code from the server, since it can only be '215' or '285' (for xgtitle) anyway. If the response code is needed, use the 'descriptions' method. NOTE: This neither checks for a wildcard in 'group' nor does it check whether the group actually exists.F(���u���_getdescriptionsu���False(���u���selfu���group(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���description|��s����u���_NNTPBase.descriptionc�������������C���s���|��j��|�d���S(���u'���Get descriptions for a range of groups.T(���u���_getdescriptionsu���True(���u���selfu ���group_pattern(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���descriptions���s����u���_NNTPBase.descriptionsc�������������C���s����|��j��d�|���}�|�j�d���s1�t�|�����n��|�j����}�d�}�}�}�t�|���}�|�d�k�r��|�d�}�|�d�k�r��|�d�}�|�d�k�r��|�d�}�|�d�k�r��|�d�j����}�q��q��q��n��|�t�|���t�|���t�|���|�f�S(���u��Process a GROUP command. Argument: - group: the group name Returns: - resp: server response if successful - count: number of articles - first: first article number - last: last article number - name: the group name u���GROUP u���211i����i���i���i���i���(���u ���_shortcmdu ���startswithu���NNTPReplyErroru���splitu���lenu���loweru���int(���u���selfu���nameu���respu���wordsu���countu���firstu���lastu���n(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���group���s���� u���_NNTPBase.groupc������������C���s���|��j��d�|���S(���u��Process a HELP command. Argument: - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of strings returned by the server in response to the HELP command u���HELP(���u���_longcmdstring(���u���selfu���file(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���help���s����u���_NNTPBase.helpc�������������C���sQ���|�j��d���s�t�|�����n��|�j����}�t�|�d���}�|�d�}�|�|�|�f�S(���u_���Internal: parse the response line of a STAT, NEXT, LAST, ARTICLE, HEAD or BODY command.u���22i���i���(���u ���startswithu���NNTPReplyErroru���splitu���int(���u���selfu���respu���wordsu���art_numu ���message_id(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���_statparse���s���� u���_NNTPBase._statparsec�������������C���s���|��j��|���}�|��j�|���S(���u/���Internal: process a STAT, NEXT or LAST command.(���u ���_shortcmdu ���_statparse(���u���selfu���lineu���resp(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_statcmd���s����u���_NNTPBase._statcmdc�������������C���s-���|�r�|��j��d�j�|�����S|��j��d���Sd�S(���u(��Process a STAT command. Argument: - message_spec: article number or message id (if not specified, the current article is selected) Returns: - resp: server response if successful - art_num: the article number - message_id: the message id u���STAT {0}u���STATN(���u���_statcmdu���format(���u���selfu���message_spec(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���stat���s���� u���_NNTPBase.statc�������������C���s ���|��j��d���S(���u;���Process a NEXT command. No arguments. Return as for STAT.u���NEXT(���u���_statcmd(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���next���s����u���_NNTPBase.nextc�������������C���s ���|��j��d���S(���u;���Process a LAST command. No arguments. Return as for STAT.u���LAST(���u���_statcmd(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���last���s����u���_NNTPBase.lastc�������������C���sF���|��j��|�|���\�}�}�|��j�|���\�}�}�}�|�t�|�|�|���f�S(���u2���Internal: process a HEAD, BODY or ARTICLE command.(���u���_longcmdu ���_statparseu���ArticleInfo(���u���selfu���lineu���fileu���respu���linesu���art_numu ���message_id(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_artcmd���s����u���_NNTPBase._artcmdc������������C���s4���|�d�k �r�d�j�|���}�n�d�}�|��j�|�|���S(���u0��Process a HEAD command. Argument: - message_spec: article number or message id - file: filename string or file object to store the headers in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of header lines) u���HEAD {0}u���HEADN(���u���Noneu���formatu���_artcmd(���u���selfu���message_specu���fileu���cmd(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���head���s����u���_NNTPBase.headc������������C���s4���|�d�k �r�d�j�|���}�n�d�}�|��j�|�|���S(���u+��Process a BODY command. Argument: - message_spec: article number or message id - file: filename string or file object to store the body in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of body lines) u���BODY {0}u���BODYN(���u���Noneu���formatu���_artcmd(���u���selfu���message_specu���fileu���cmd(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���body���s����u���_NNTPBase.bodyc������������C���s4���|�d�k �r�d�j�|���}�n�d�}�|��j�|�|���S(���u5��Process an ARTICLE command. Argument: - message_spec: article number or message id - file: filename string or file object to store the article in Returns: - resp: server response if successful - ArticleInfo: (article number, message id, list of article lines) u���ARTICLE {0}u���ARTICLEN(���u���Noneu���formatu���_artcmd(���u���selfu���message_specu���fileu���cmd(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���article���s����u���_NNTPBase.articlec�������������C���s ���|��j��d���S(���uY���Process a SLAVE command. Returns: - resp: server response if successful u���SLAVE(���u ���_shortcmd(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���slave��s����u���_NNTPBase.slavec���������������sb���t��j�d������|��j�d�j�|�|���|���\�}�}����f�d�d������|���f�d�d����|�D��f�S(���ui��Process an XHDR command (optional server extension). Arguments: - hdr: the header type (e.g. 'subject') - str: an article nr, a message id, or a range nr1-nr2 - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of (nr, value) strings u���^([0-9]+) ?(.*) ?u���XHDR {0} {1}c����������������s)������j��|����}�|�r%�|�j�d�d���S|��S(���Ni���i���(���u���matchu���group(���u���lineu���m(���u���pat(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���remove_number��s����u%���_NNTPBase.xhdr.<locals>.remove_numberc����������������s���g��|��]�}����|�����q�S(����(����(���u���.0u���line(���u ���remove_number(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���<listcomp>��s��� �u"���_NNTPBase.xhdr.<locals>.<listcomp>(���u���reu���compileu���_longcmdstringu���format(���u���selfu���hdru���stru���fileu���respu���lines(����(���u���patu ���remove_numberu,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���xhdr��s���� $u���_NNTPBase.xhdrc������������C���sC���|��j��d�j�|�|���|���\�}�}�|��j����}�|�t�|�|���f�S(���uF��Process an XOVER command (optional server extension) Arguments: - start: start of range - end: end of range - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of dicts containing the response fields u ���XOVER {0}-{1}(���u���_longcmdstringu���formatu���_getoverviewfmtu���_parse_overview(���u���selfu���startu���endu���fileu���respu���linesu���fmt(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���xover��s���� u���_NNTPBase.xoverc������ ������C���s����d�|��j��k�r�d�n�d�}�t�|�t�t�f���r[�|�\�}�}�|�d�j�|�|�pQ�d���7}�n�|�d�k �rx�|�d�|�}�n��|��j�|�|���\�}�}�|��j����}�|�t�|�|���f�S(���u���Process an OVER command. If the command isn't supported, fall back to XOVER. Arguments: - message_spec: - either a message id, indicating the article to fetch information about - or a (start, end) tuple, indicating a range of article numbers; if end is None, information up to the newest message will be retrieved - or None, indicating the current article number must be used - file: Filename string or file object to store the result in Returns: - resp: server response if successful - list: list of dicts containing the response fields NOTE: the "message id" form isn't supported by XOVER u���OVERu���XOVERu��� {0}-{1}u����u��� N( ���u���_capsu ���isinstanceu���tupleu���listu���formatu���Noneu���_longcmdstringu���_getoverviewfmtu���_parse_overview( ���u���selfu���message_specu���fileu���cmdu���startu���endu���respu���linesu���fmt(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���over*��s����u���_NNTPBase.overc������ ������C���s����t��j�d�t�d���t�j�d���}�|��j�d�|�|���\�}�}�g��}�xE�|�D]=�}�|�j�|�j������}�|�rK�|�j�|�j �d�d�����qK�qK�W|�|�f�S(���u����Process an XGTITLE command (optional server extension) Arguments: - group: group name wildcard (i.e. news.*) Returns: - resp: server response if successful - list: list of (name,title) stringsuF���The XGTITLE extension is not actively used, use descriptions() insteadi���u���^([^ ]+)[ ]+(.*)$u���XGTITLE i���( ���u���warningsu���warnu���DeprecationWarningu���reu���compileu���_longcmdstringu���searchu���stripu���appendu���group( ���u���selfu���groupu���fileu���line_patu���respu ���raw_linesu���linesu���raw_lineu���match(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���xgtitleE��s���� u���_NNTPBase.xgtitlec�������������C���s����t��j�d�t�d���|��j�d�j�|�����}�|�j�d���sI�t�|�����n��y�|�j����\�}�}�Wn�t�k �r�t�|�����Yn�X|�|�f�Sd�S(���u����Process an XPATH command (optional server extension) Arguments: - id: Message id of article Returns: resp: server response if successful path: directory path to article u(���The XPATH extension is not actively usedi���u ���XPATH {0}u���223N( ���u���warningsu���warnu���DeprecationWarningu ���_shortcmdu���formatu ���startswithu���NNTPReplyErroru���splitu ���ValueError(���u���selfu���idu���respu���resp_numu���path(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���xpathW��s���� u���_NNTPBase.xpathc�������������C���s����|��j��d���}�|�j�d���s-�t�|�����n��|�j����}�t�|���d�k�rZ�t�|�����n��|�d�}�t�|���d�k�r��t�|�����n��|�t�|�d���f�S(���u����Process the DATE command. Returns: - resp: server response if successful - date: datetime object u���DATEu���111i���i���i���N(���u ���_shortcmdu ���startswithu���NNTPReplyErroru���splitu���lenu ���NNTPDataErroru���_parse_datetimeu���None(���u���selfu���respu���elemu���date(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���datek��s���� u���_NNTPBase.datec�������������C���s����|��j��|���}�|�j�d���s-�t�|�����n��t�|�t�t�f���rQ�|�j����}�n��x_�|�D]W�}�|�j�t���s��|�j �d���t�}�n��|�j�d���r��d�|�}�n��|��j �j�|���qX�W|��j �j�d���|��j �j����|��j ����S(���Nu���3s��� s���.s���. (���u ���_shortcmdu ���startswithu���NNTPReplyErroru ���isinstanceu���bytesu ���bytearrayu ���splitlinesu���endswithu���_CRLFu���rstripu���fileu���writeu���flushu���_getresp(���u���selfu���commandu���fu���respu���line(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_post|��s���� u���_NNTPBase._postc�������������C���s���|��j��d�|���S(���u����Process a POST command. Arguments: - data: bytes object, iterable or file containing the article Returns: - resp: server response if successfulu���POST(���u���_post(���u���selfu���data(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���post���s����u���_NNTPBase.postc�������������C���s���|��j��d�j�|���|���S(���u��Process an IHAVE command. Arguments: - message_id: message-id of the article - data: file containing the article Returns: - resp: server response if successful Note that if the server refuses the article an exception is raised.u ���IHAVE {0}(���u���_postu���format(���u���selfu ���message_idu���data(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���ihave���s����u���_NNTPBase.ihavec�������������C���s���|��j��j����|��`��d��S(���N(���u���fileu���close(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_close���s���� u���_NNTPBase._closec���������� ���C���s%���z�|��j��d���}�Wd�|��j����X|�S(���ud���Process a QUIT command and close the socket. Returns: - resp: server response if successfulu���QUITN(���u ���_shortcmdu���_close(���u���selfu���resp(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���quit���s����u���_NNTPBase.quitc�������������C���si��|��j��r�t�d�����n��|�r5�|�r5�t�d�����n��y[�|�r��|�r��d�d��l�}�|�j����}�|�j�|��j���}�|�r��|�d�}�|�d�}�q��n��Wn�t�k �r��Yn�X|�s��d��S|��j�d�|���}�|�j�d���r|�s��t�|�����q|��j�d�|���}�|�j�d���st �|�����qn��d��|��_�|��j����|��j �red �|��j�k�re|��j����d��|��_�|��j����n��d��S( ���Nu���Already logged in.u7���At least one of `user` and `usenetrc` must be specifiedi����i���u���authinfo user u���381u���authinfo pass u���281u���READER(���u ���authenticatedu ���ValueErroru���netrcu���authenticatorsu���hostu���IOErroru ���_shortcmdu ���startswithu���NNTPReplyErroru���NNTPPermanentErroru���Noneu���_capsu���getcapabilitiesu���readermode_afterauthu���_setreadermode(���u���selfu���useru���passwordu���usenetrcu���netrcu���credentialsu���authu���resp(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���login���s<���� u���_NNTPBase.loginc�������������C���st���y�|��j��d���|��_�WnW�t�k �r*�YnF�t�k �ro�}�z&�|�j�j�d���rZ�d�|��_�n����WYd��d��}�~�Xn�Xd��S(���Nu���mode readeru���480T(���u ���_shortcmdu���welcomeu���NNTPPermanentErroru���NNTPTemporaryErroru���responseu ���startswithu���Trueu���readermode_afterauth(���u���selfu���e(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_setreadermode���s���� u���_NNTPBase._setreadermodec�������������C���s����|��j��r�t�d�����n��|��j�r0�t�d�����n��|��j�d���}�|�j�d���r��|��j�j����t�|��j�|���|��_�|��j�j �d���|��_�d�|��_��d�|��_�|��j ����n�t�d�����d�S( ���uz���Process a STARTTLS command. Arguments: - context: SSL context to use for the encrypted connection u���TLS is already enabled.u+���TLS cannot be started after authentication.u���STARTTLSu���382u���rwbu���TLS failed to start.NT(���u���tls_onu ���ValueErroru ���authenticatedu ���_shortcmdu ���startswithu���fileu���closeu���_encrypt_onu���socku���makefileu���Trueu���Noneu���_capsu���getcapabilitiesu ���NNTPError(���u���selfu���contextu���resp(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���starttls���s���� u���_NNTPBase.starttlsNT(;���u���__name__u ���__module__u���__qualname__u���encodingu���errorsu���Noneu���_GLOBAL_DEFAULT_TIMEOUTu���__init__u ���__enter__u���__exit__u ���getwelcomeu���getcapabilitiesu���set_debuglevelu���debugu���_putlineu���_putcmdu���Trueu���_getlineu���_getrespu���_getlongrespu ���_shortcmdu���_longcmdu���_longcmdstringu���_getoverviewfmtu ���_grouplistu���capabilitiesu ���newgroupsu���newnewsu���listu���_getdescriptionsu���descriptionu���descriptionsu���groupu���helpu ���_statparseu���_statcmdu���statu���nextu���lastu���_artcmdu���headu���bodyu���articleu���slaveu���xhdru���xoveru���overu���xgtitleu���xpathu���dateu���_postu���postu���ihaveu���_closeu���quitu���loginu���_setreadermodeu ���_have_sslu���starttls(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu ���_NNTPBase*��sj��� . . ) u ���_NNTPBasec�������������B���s>���|��Ee��Z�d��Z�e�d�d�d�d�e�d�d���Z�d�d����Z�d�S(���u���NNTPc������� ������C���s~���|�|��_��|�|��_�t�j�|�|�f�|���|��_�|��j�j�d���}�t�j�|��|�|�|�|���|�sd�|�rz�|��j�|�|�|���n��d�S(���u,��Initialize an instance. Arguments: - host: hostname to connect to - port: port to connect to (default the standard NNTP port) - user: username to authenticate with - password: password to use with username - readermode: if true, send 'mode reader' command after connecting. - usenetrc: allow loading username and password from ~/.netrc file if not specified explicitly - timeout: timeout (in seconds) used for socket connections readermode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific commands, such as `group'. If you get unexpected NNTPPermanentErrors, you might need to set readermode. u���rwbN( ���u���hostu���portu���socketu���create_connectionu���socku���makefileu ���_NNTPBaseu���__init__u���login( ���u���selfu���hostu���portu���useru���passwordu ���readermodeu���usenetrcu���timeoutu���file(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���__init__���s���� u ���NNTP.__init__c���������� ���C���s&���z�t��j�|����Wd��|��j�j����Xd��S(���N(���u ���_NNTPBaseu���_closeu���socku���close(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_close��s����u���NNTP._closeNF( ���u���__name__u ���__module__u���__qualname__u ���NNTP_PORTu���Noneu���Falseu���_GLOBAL_DEFAULT_TIMEOUTu���__init__u���_close(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTP���s��� c���������� ���B���sA���|��Ee��Z�d��Z�e�d�d�d�d�d�e�d�d���Z�d�d����Z�d�S(���u���NNTP_SSLc ������� ������C���s����t��j�|�|�f�|���|��_�t�|��j�|���|��_�|��j�j�d���} �t�j�|��| �|�d�|�d�|��|�sm�|�r��|��j�|�|�|���n��d�S(���u����This works identically to NNTP.__init__, except for the change in default port and the `ssl_context` argument for SSL connections. u���rwbu ���readermodeu���timeoutN(���u���socketu���create_connectionu���socku���_encrypt_onu���makefileu ���_NNTPBaseu���__init__u���login( ���u���selfu���hostu���portu���useru���passwordu���ssl_contextu ���readermodeu���usenetrcu���timeoutu���file(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���__init__&��s���� u���NNTP_SSL.__init__c���������� ���C���s&���z�t��j�|����Wd��|��j�j����Xd��S(���N(���u ���_NNTPBaseu���_closeu���socku���close(���u���self(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���_close5��s����u���NNTP_SSL._closeNF( ���u���__name__u ���__module__u���__qualname__u ���NNTP_SSL_PORTu���Noneu���Falseu���_GLOBAL_DEFAULT_TIMEOUTu���__init__u���_close(���u ���__locals__(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���NNTP_SSL$��s ��� u���NNTP_SSLu���__main__(���u ���parsedateu���descriptionuJ��� nntplib built-in demo - display the latest articles in a newsgroupu���-gu���--groupu���defaultu���gmane.comp.python.generalu���helpu3���group to fetch messages from (default: %(default)s)u���-su���--serveru���news.gmane.orgu+���NNTP server hostname (default: %(default)s)u���-pu���--porti���u���typeu#���NNTP port number (default: %s / %s)u���-nu ���--nb-articlesi ���u2���number of articles to fetch (default: %(default)s)u���-Su���--sslu���actionu ���store_trueu���use NNTP over SSLu���hostu���portu���STARTTLSu���Groupu���hasu���articles, rangeu���toc�������������C���s1���t��|����|�k�r-�|��d��|�d���d�}��n��|��S(���Ni���u���...(���u���len(���u���su���lim(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���cuta��s����u���cutu���<u���{:7} {:20} {:42} ({})i���i*���(O���u���__doc__u���reu���socketu���collectionsu���datetimeu���warningsu���sslu���ImportErroru���Falseu ���_have_sslu���Trueu���email.headeru ���decode_headeru���_email_decode_headeru���_GLOBAL_DEFAULT_TIMEOUTu���__all__u���_MAXLINEu ���Exceptionu ���NNTPErroru���NNTPReplyErroru���NNTPTemporaryErroru���NNTPPermanentErroru���NNTPProtocolErroru ���NNTPDataErroru ���NNTP_PORTu ���NNTP_SSL_PORTu ���_LONGRESPu���_DEFAULT_OVERVIEW_FMTu���_OVERVIEW_FMT_ALTERNATIVESu���_CRLFu ���namedtupleu ���GroupInfou���ArticleInfou���_parse_overview_fmtu���Noneu���_parse_overviewu���_parse_datetimeu���_unparse_datetimeu���_encrypt_onu ���_NNTPBaseu���NNTPu���NNTP_SSLu���appendu���__name__u���argparseu���email.utilsu ���parsedateu���ArgumentParseru���parseru���add_argumentu���intu ���parse_argsu���argsu���portu���serveru���su���getcapabilitiesu���capsu���starttlsu���groupu���respu���countu���firstu���lastu���nameu���printu���cutu���stru���nb_articlesu���xoveru ���overviewsu���artnumu���overu���splitu���authoru���subjectu���linesu���formatu���quit(����(����(����u,���/opt/alt/python33/lib64/python3.3/nntplib.pyu���<module>���s����& �����& ! )