X7ROOT File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/email
opt
/
alt
/
python27
/
lib64
/
python2.7
/
email
/
ðŸ“
..
📄
__init__.py
(2.79 KB)
📄
__init__.pyc
(2.88 KB)
📄
__init__.pyo
(2.88 KB)
📄
_parseaddr.py
(15.76 KB)
📄
_parseaddr.pyc
(13.91 KB)
📄
_parseaddr.pyo
(13.91 KB)
📄
base64mime.py
(5.66 KB)
📄
base64mime.pyc
(5.26 KB)
📄
base64mime.pyo
(5.26 KB)
📄
charset.py
(15.67 KB)
📄
charset.pyc
(13.44 KB)
📄
charset.pyo
(13.39 KB)
📄
encoders.py
(1.97 KB)
📄
encoders.pyc
(2.27 KB)
📄
encoders.pyo
(2.27 KB)
📄
errors.py
(1.59 KB)
📄
errors.pyc
(3.64 KB)
📄
errors.pyo
(3.64 KB)
📄
feedparser.py
(20.01 KB)
📄
feedparser.pyc
(11.17 KB)
📄
feedparser.pyo
(11.08 KB)
📄
generator.py
(13.87 KB)
📄
generator.pyc
(10.38 KB)
📄
generator.pyo
(10.38 KB)
📄
header.py
(21.72 KB)
📄
header.pyc
(13.54 KB)
📄
header.pyo
(13.48 KB)
📄
iterators.py
(2.15 KB)
📄
iterators.pyc
(2.37 KB)
📄
iterators.pyo
(2.37 KB)
📄
message.py
(30 KB)
📄
message.pyc
(28.59 KB)
📄
message.pyo
(28.59 KB)
ðŸ“
mime
📄
parser.py
(3.22 KB)
📄
parser.pyc
(3.84 KB)
📄
parser.pyo
(3.84 KB)
📄
quoprimime.py
(10.59 KB)
📄
quoprimime.pyc
(8.81 KB)
📄
quoprimime.pyo
(8.81 KB)
📄
utils.py
(9.79 KB)
📄
utils.pyc
(9.31 KB)
📄
utils.pyo
(9.31 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