404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.129.67.218: ~ $
# Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org

"""email package exception classes."""



class MessageError(Exception):
    """Base class for errors in the email package."""


class MessageParseError(MessageError):
    """Base class for message parsing errors."""


class HeaderParseError(MessageParseError):
    """Error while parsing headers."""


class BoundaryError(MessageParseError):
    """Couldn't find terminating boundary."""


class MultipartConversionError(MessageError, TypeError):
    """Conversion to a multipart is prohibited."""


class CharsetError(MessageError):
    """An illegal charset was given."""



# These are parsing defects which the parser was able to work around.
class MessageDefect:
    """Base class for a message defect."""

    def __init__(self, line=None):
        self.line = line

class NoBoundaryInMultipartDefect(MessageDefect):
    """A message claimed to be a multipart but had no boundary parameter."""

class StartBoundaryNotFoundDefect(MessageDefect):
    """The claimed start boundary was never found."""

class FirstHeaderLineIsContinuationDefect(MessageDefect):
    """A message had a continuation line as its first header line."""

class MisplacedEnvelopeHeaderDefect(MessageDefect):
    """A 'Unix-from' header was found in the middle of a header block."""

class MalformedHeaderDefect(MessageDefect):
    """Found a header that was missing a colon, or was otherwise malformed."""

class MultipartInvariantViolationDefect(MessageDefect):
    """A message claimed to be a multipart but no subparts were found."""

Filemanager

Name Type Size Permission Actions
mime Folder 0755
__init__.py File 2.79 KB 0644
__init__.pyc File 2.8 KB 0644
__init__.pyo File 2.8 KB 0644
_parseaddr.py File 15.76 KB 0644
_parseaddr.pyc File 13.57 KB 0644
_parseaddr.pyo File 13.57 KB 0644
base64mime.py File 5.66 KB 0644
base64mime.pyc File 5.2 KB 0644
base64mime.pyo File 5.2 KB 0644
charset.py File 15.67 KB 0644
charset.pyc File 13.22 KB 0644
charset.pyo File 13.18 KB 0644
encoders.py File 1.97 KB 0644
encoders.pyc File 2.18 KB 0644
encoders.pyo File 2.18 KB 0644
errors.py File 1.59 KB 0644
errors.pyc File 3.45 KB 0644
errors.pyo File 3.45 KB 0644
feedparser.py File 20.01 KB 0644
feedparser.pyc File 10.88 KB 0644
feedparser.pyo File 10.79 KB 0644
generator.py File 13.87 KB 0644
generator.pyc File 10.14 KB 0644
generator.pyo File 10.14 KB 0644
header.py File 21.72 KB 0644
header.pyc File 13.34 KB 0644
header.pyo File 13.27 KB 0644
iterators.py File 2.15 KB 0644
iterators.pyc File 2.31 KB 0644
iterators.pyo File 2.31 KB 0644
message.py File 30 KB 0644
message.pyc File 28 KB 0644
message.pyo File 28 KB 0644
parser.py File 3.22 KB 0644
parser.pyc File 3.74 KB 0644
parser.pyo File 3.74 KB 0644
quoprimime.py File 10.59 KB 0644
quoprimime.pyc File 8.64 KB 0644
quoprimime.pyo File 8.64 KB 0644
utils.py File 9.79 KB 0644
utils.pyc File 9.11 KB 0644
utils.pyo File 9.11 KB 0644