[Python-checkins] python/dist/src/Lib/email init.py,1.31,1.32 (original) (raw)
bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Sat May 8 23:51:41 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Lib/email Utils.py,1.25,1.26
- Next message: [Python-checkins] python/dist/src/Lib/email _parseaddr.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/python/python/dist/src/Lib/email In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14907
Modified Files: init.py Log Message: Update to Python 2.3, getting rid of backward compatiblity crud.
Index: init.py
RCS file: /cvsroot/python/python/dist/src/Lib/email/init.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** init.py 30 Dec 2003 16:49:40 -0000 1.31
--- init.py 9 May 2004 03:51:39 -0000 1.32
***************
*** 1,9 ****
! # Copyright (C) 2001,2002 Python Software Foundation
! # Author: barry at zope.com (Barry Warsaw)
! """A package for parsing, handling, and generating email messages.
! """
! version = '2.5.5'
all = [
--- 1,8 ----
! # Copyright (C) 2001-2004 Python Software Foundation
! # Author: barry at python.org (Barry Warsaw)
! """A package for parsing, handling, and generating email messages."""
! version = '3.0a0'
all = [
***************
*** 30,39 ****
]
- try:
- True, False
- except NameError:
- True = 1
- False = 0
--- 29,32 ----
***************
*** 52,55 ****
--- 45,49 ----
return Parser(_class, strict=strict).parsestr(s)
+
def message_from_file(fp, _class=None, strict=False):
"""Read a file and parse its contents into a Message object model.
***************
*** 62,72 ****
_class = Message
return Parser(_class, strict=strict).parse(fp)
-
Patch encodings.aliases to recognize 'ansi_x3.4_1968' which isn't a standard
alias in Python 2.1.3, but is used by the email package test suite.
- from encodings.aliases import aliases # The aliases dictionary
- if not aliases.has_key('ansi_x3.4_1968'):
aliases['ansi_x3.4_1968'] = 'ascii'
- del aliases # Not needed any more --- 56,57 ----
- Previous message: [Python-checkins] python/dist/src/Lib/email Utils.py,1.25,1.26
- Next message: [Python-checkins] python/dist/src/Lib/email _parseaddr.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]