← Back
Editing: pop3client.cpython-38.pyc
U W[r� � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ddl mZ ddl mZ dd lm Z dd lmZ ddlmZmZmZmZmZ dZd ZG dd� d�Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� dejej�Zg Z dS )z� A POP3 client protocol implementation. Don't use this module directly. Use twisted.mail.pop3 instead. @author: Jp Calderone � N)�md5)�log)� intToBytes)�defer)�basic)�policies)�error)� interfaces)� InsecureAuthenticationDisallowed�TLSError�TLSNotSupportedError�ServerErrorResponse�LineTooLongs +OKs -ERRc @ s e Zd ZdZdd� Zdd� ZdS )�_ListSettera$ A utility class to construct a list from a multi-line response accounting for deleted messages. POP3 responses sometimes occur in the form of a list of lines containing two pieces of data, a message index and a value of some sort. When a message is deleted, it is omitted from these responses. The L{setitem} method of this class is meant to be called with these two values. In the cases where indices are skipped, it takes care of padding out the missing values with L{None}. @ivar L: See L{__init__} c C s || _ dS )z� @type L: L{list} of L{object} @param L: The list being constructed. An empty list should be passed in. N��L)�selfr � r �9/usr/lib/python3/dist-packages/twisted/mail/pop3client.py�__init__/ s z_ListSetter.__init__c C sB |\}}|t | j� d }|dkr4| j�dg| � || j|<