Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python27/lib64/python2.7/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib64/python2.7/email/errors.py
# 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."""
Name
Size
Permissions
Options
mime
--
drwxr-xr-x
__init__.py
2.789 KB
-rw-r--r--
__init__.pyc
2.881 KB
-rw-r--r--
__init__.pyo
2.881 KB
-rw-r--r--
_parseaddr.py
15.76 KB
-rw-r--r--
_parseaddr.pyc
13.91 KB
-rw-r--r--
_parseaddr.pyo
13.91 KB
-rw-r--r--
base64mime.py
5.658 KB
-rw-r--r--
base64mime.pyc
5.262 KB
-rw-r--r--
base64mime.pyo
5.262 KB
-rw-r--r--
charset.py
15.668 KB
-rw-r--r--
charset.pyc
13.439 KB
-rw-r--r--
charset.pyo
13.394 KB
-rw-r--r--
encoders.py
1.968 KB
-rw-r--r--
encoders.pyc
2.269 KB
-rw-r--r--
encoders.pyo
2.269 KB
-rw-r--r--
errors.py
1.59 KB
-rw-r--r--
errors.pyc
3.637 KB
-rw-r--r--
errors.pyo
3.637 KB
-rw-r--r--
feedparser.py
20.012 KB
-rw-r--r--
feedparser.pyc
11.174 KB
-rw-r--r--
feedparser.pyo
11.085 KB
-rw-r--r--
generator.py
13.87 KB
-rw-r--r--
generator.pyc
10.378 KB
-rw-r--r--
generator.pyo
10.378 KB
-rw-r--r--
header.py
21.722 KB
-rw-r--r--
header.pyc
13.545 KB
-rw-r--r--
header.pyo
13.477 KB
-rw-r--r--
iterators.py
2.15 KB
-rw-r--r--
iterators.pyc
2.374 KB
-rw-r--r--
iterators.pyo
2.374 KB
-rw-r--r--
message.py
30.003 KB
-rw-r--r--
message.pyc
28.588 KB
-rw-r--r--
message.pyo
28.588 KB
-rw-r--r--
parser.py
3.222 KB
-rw-r--r--
parser.pyc
3.84 KB
-rw-r--r--
parser.pyo
3.84 KB
-rw-r--r--
quoprimime.py
10.594 KB
-rw-r--r--
quoprimime.pyc
8.808 KB
-rw-r--r--
quoprimime.pyo
8.808 KB
-rw-r--r--
utils.py
9.791 KB
-rw-r--r--
utils.pyc
9.309 KB
-rw-r--r--
utils.pyo
9.309 KB
-rw-r--r--