mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Bump to version 2.0.5, and also use absolute import paths.
This commit is contained in:
parent
2f514a806d
commit
9d5e4aa414
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
"""A package for parsing, handling, and generating email messages.
|
"""A package for parsing, handling, and generating email messages.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '2.0.4'
|
__version__ = '2.0.5'
|
||||||
|
|
||||||
__all__ = ['Charset',
|
__all__ = ['Charset',
|
||||||
'Encoders',
|
'Encoders',
|
||||||
|
|
@ -29,8 +29,8 @@ __all__ = ['Charset',
|
||||||
|
|
||||||
|
|
||||||
# Some convenience routines
|
# Some convenience routines
|
||||||
from Parser import Parser as _Parser
|
from email.Parser import Parser as _Parser
|
||||||
from Message import Message as _Message
|
from email.Message import Message as _Message
|
||||||
|
|
||||||
def message_from_string(s, _class=_Message):
|
def message_from_string(s, _class=_Message):
|
||||||
return _Parser(_class).parsestr(s)
|
return _Parser(_class).parsestr(s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue