String method cleanup.

This commit is contained in:
Eric S. Raymond 2001-02-10 00:22:33 +00:00
parent c8c6aa201f
commit 6e025bcde8
5 changed files with 7 additions and 13 deletions

View file

@ -110,7 +110,7 @@ def mime_decode_header(line):
break
match = res.group(1)
# convert underscores to spaces (before =XX conversion!)
match = ' '.join(string.split(match, '_'))
match = ' '.join(match.split('_'))
newline = newline + line[pos:res.start(0)] + mime_decode(match)
pos = res.end(0)
return newline + line[pos:]