X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/email
usr
/
lib64
/
python2.7
/
email
/
ðŸ“
..
📄
__init__.py
(2.79 KB)
📄
__init__.pyc
(2.8 KB)
📄
__init__.pyo
(2.8 KB)
📄
_parseaddr.py
(15.76 KB)
📄
_parseaddr.pyc
(13.57 KB)
📄
_parseaddr.pyo
(13.57 KB)
📄
base64mime.py
(5.66 KB)
📄
base64mime.pyc
(5.2 KB)
📄
base64mime.pyo
(5.2 KB)
📄
charset.py
(15.67 KB)
📄
charset.pyc
(13.22 KB)
📄
charset.pyo
(13.18 KB)
📄
encoders.py
(1.97 KB)
📄
encoders.pyc
(2.18 KB)
📄
encoders.pyo
(2.18 KB)
📄
errors.py
(1.59 KB)
📄
errors.pyc
(3.45 KB)
📄
errors.pyo
(3.45 KB)
📄
feedparser.py
(20.01 KB)
📄
feedparser.pyc
(10.88 KB)
📄
feedparser.pyo
(10.79 KB)
📄
generator.py
(13.87 KB)
📄
generator.pyc
(10.14 KB)
📄
generator.pyo
(10.14 KB)
📄
header.py
(21.72 KB)
📄
header.pyc
(13.34 KB)
📄
header.pyo
(13.27 KB)
📄
iterators.py
(2.15 KB)
📄
iterators.pyc
(2.31 KB)
📄
iterators.pyo
(2.31 KB)
📄
message.py
(30 KB)
📄
message.pyc
(28 KB)
📄
message.pyo
(28 KB)
ðŸ“
mime
📄
parser.py
(3.22 KB)
📄
parser.pyc
(3.74 KB)
📄
parser.pyo
(3.74 KB)
📄
quoprimime.py
(10.59 KB)
📄
quoprimime.pyc
(8.64 KB)
📄
quoprimime.pyo
(8.64 KB)
📄
utils.py
(9.79 KB)
📄
utils.pyc
(9.11 KB)
📄
utils.pyo
(9.11 KB)
Editing: __init__.py
# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """A package for parsing, handling, and generating email messages.""" __version__ = '4.0.3' __all__ = [ # Old names 'base64MIME', 'Charset', 'Encoders', 'Errors', 'Generator', 'Header', 'Iterators', 'Message', 'MIMEAudio', 'MIMEBase', 'MIMEImage', 'MIMEMessage', 'MIMEMultipart', 'MIMENonMultipart', 'MIMEText', 'Parser', 'quopriMIME', 'Utils', 'message_from_string', 'message_from_file', # new names 'base64mime', 'charset', 'encoders', 'errors', 'generator', 'header', 'iterators', 'message', 'mime', 'parser', 'quoprimime', 'utils', ] # Some convenience routines. Don't import Parser and Message as side-effects # of importing email since those cascadingly import most of the rest of the # email package. def message_from_string(s, *args, **kws): """Parse a string into a Message object model. Optional _class and strict are passed to the Parser constructor. """ from email.parser import Parser return Parser(*args, **kws).parsestr(s) def message_from_file(fp, *args, **kws): """Read a file and parse its contents into a Message object model. Optional _class and strict are passed to the Parser constructor. """ from email.parser import Parser return Parser(*args, **kws).parse(fp) # Lazy loading to provide name mapping from new-style names (PEP 8 compatible # email 4.0 module names), to old-style names (email 3.0 module names). import sys class LazyImporter(object): def __init__(self, module_name): self.__name__ = 'email.' + module_name def __getattr__(self, name): __import__(self.__name__) mod = sys.modules[self.__name__] self.__dict__.update(mod.__dict__) return getattr(mod, name) _LOWERNAMES = [ # email.<old name> -> email.<new name is lowercased old name> 'Charset', 'Encoders', 'Errors', 'FeedParser', 'Generator', 'Header', 'Iterators', 'Message', 'Parser', 'Utils', 'base64MIME', 'quopriMIME', ] _MIMENAMES = [ # email.MIME<old name> -> email.mime.<new name is lowercased old name> 'Audio', 'Base', 'Image', 'Message', 'Multipart', 'NonMultipart', 'Text', ] for _name in _LOWERNAMES: importer = LazyImporter(_name.lower()) sys.modules['email.' + _name] = importer setattr(sys.modules['email'], _name, importer) import email.mime for _name in _MIMENAMES: importer = LazyImporter('mime.' + _name.lower()) sys.modules['email.MIME' + _name] = importer setattr(sys.modules['email'], 'MIME' + _name, importer) setattr(sys.modules['email.mime'], _name, importer)
Upload File
Create Folder