[Python-checkins] CVS: python/dist/src/Lib/dos-8x3 rfc822-n.py,1.1,1.2
Jeremy Hylton
python-dev@python.org
Fri, 7 Jul 2000 14:02:02 -0700
Update of /cvsroot/python/python/dist/src/Lib/dos-8x3
In directory slayer.i.sourceforge.net:/tmp/cvs-serv31709/dos-8x3
Modified Files:
rfc822-n.py
Log Message:
fix inconsistent use of tabs and spaces
Index: rfc822-n.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dos-8x3/rfc822-n.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** rfc822-n.py 2000/05/08 17:31:00 1.1
--- rfc822-n.py 2000/07/07 21:02:00 1.2
***************
*** 328,336 ****
raw = []
for h in self.getallmatchingheaders(name):
! if h[0] in ' \t':
! raw.append(h)
! else:
! if raw:
! raw.append(', ')
i = string.find(h, ':')
if i > 0:
--- 328,336 ----
raw = []
for h in self.getallmatchingheaders(name):
! if h[0] in ' \t':
! raw.append(h)
! else:
! if raw:
! raw.append(', ')
i = string.find(h, ':')
if i > 0:
***************
*** 833,846 ****
if mm > 12: mm = mm - 12
if dd[-1] == ',':
! dd = dd[:-1]
i = string.find(yy, ':')
if i > 0:
! yy, tm = tm, yy
if yy[-1] == ',':
! yy = yy[:-1]
if yy[0] not in string.digits:
! yy, tz = tz, yy
if tm[-1] == ',':
! tm = tm[:-1]
tm = string.splitfields(tm, ':')
if len(tm) == 2:
--- 833,846 ----
if mm > 12: mm = mm - 12
if dd[-1] == ',':
! dd = dd[:-1]
i = string.find(yy, ':')
if i > 0:
! yy, tm = tm, yy
if yy[-1] == ',':
! yy = yy[:-1]
if yy[0] not in string.digits:
! yy, tz = tz, yy
if tm[-1] == ',':
! tm = tm[:-1]
tm = string.splitfields(tm, ':')
if len(tm) == 2: