diff options
author | Fred Drake <fdrake@acm.org> | 2000-02-10 17:17:14 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-02-10 17:17:14 (GMT) |
commit | 13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3 (patch) | |
tree | 6942aa091af39fe239eff68b0bf1292eea26da29 /Lib/rfc822.py | |
parent | 857c4c36b962c6e74559e045c7fb43177dd5bcea (diff) | |
download | cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.zip cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.tar.gz cpython-13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3.tar.bz2 |
Untabify to pass the -tt test.
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r-- | Lib/rfc822.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index b937038..bb17614 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -332,11 +332,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:] @@ -786,7 +786,7 @@ def dump_address_pair(pair): _monthnames = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec', - 'january', 'february', 'march', 'april', 'may', 'june', 'july', + 'january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] _daynames = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] @@ -837,16 +837,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 |