Updated for hfsplus module, new gusi libs.
[python/dscho.git] / Lib / email / __init__.py
blobc13495b4b887c132b5bf8e0897f3fc9a64269285
1 # Copyright (C) 2001 Python Software Foundation
2 # Author: barry@zope.com (Barry Warsaw)
4 """A package for parsing, handling, and generating email messages.
5 """
7 __version__ = '1.0'
9 __all__ = ['Encoders',
10 'Errors',
11 'Generator',
12 'Iterators',
13 'MIMEAudio',
14 'MIMEBase',
15 'MIMEImage',
16 'MIMEMessage',
17 'MIMEText',
18 'Message',
19 'Parser',
20 'Utils',
21 'message_from_string',
22 'message_from_file',
27 # Some convenience routines
28 from Parser import Parser as _Parser
29 from Message import Message as _Message
31 def message_from_string(s, _class=_Message):
32 return _Parser(_class).parsestr(s)
34 def message_from_file(fp, _class=_Message):
35 return _Parser(_class).parse(fp)