diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-07 21:02:00 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-07-07 21:02:00 (GMT) |
commit | 04f39aa859764a9838240d28d6ac3a844c8b6aed (patch) | |
tree | 6566c2f5655e36e9d8b69feecae195d1cd0609f7 /Lib/dos-8x3 | |
parent | 65d6edb478d8c649766c59c5ae186bf0d1e812e6 (diff) | |
download | cpython-04f39aa859764a9838240d28d6ac3a844c8b6aed.zip cpython-04f39aa859764a9838240d28d6ac3a844c8b6aed.tar.gz cpython-04f39aa859764a9838240d28d6ac3a844c8b6aed.tar.bz2 |
fix inconsistent use of tabs and spaces
Diffstat (limited to 'Lib/dos-8x3')
-rw-r--r-- | Lib/dos-8x3/rfc822-n.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/dos-8x3/rfc822-n.py b/Lib/dos-8x3/rfc822-n.py index ef7ab43..26e3a41 100644 --- a/Lib/dos-8x3/rfc822-n.py +++ b/Lib/dos-8x3/rfc822-n.py @@ -327,11 +327,11 @@ class Message: """ raw = [] for h in self.getallmatchingheaders(name): - if h[0] in ' \t': - raw.append(h) - else: - if raw: - raw.append(', ') + if h[0] in ' \t': + raw.append(h) + else: + if raw: + raw.append(', ') i = string.find(h, ':') if i > 0: addr = h[i+1:] @@ -832,16 +832,16 @@ def parsedate_tz(data): mm = _monthnames.index(mm)+1 if mm > 12: mm = mm - 12 if dd[-1] == ',': - dd = dd[:-1] + dd = dd[:-1] i = string.find(yy, ':') if i > 0: - yy, tm = tm, yy + yy, tm = tm, yy if yy[-1] == ',': - yy = yy[:-1] + yy = yy[:-1] if yy[0] not in string.digits: - yy, tz = tz, yy + yy, tz = tz, yy if tm[-1] == ',': - tm = tm[:-1] + tm = tm[:-1] tm = string.splitfields(tm, ':') if len(tm) == 2: [thh, tmm] = tm |