mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
String method cleanup.
This commit is contained in:
parent
c8c6aa201f
commit
6e025bcde8
5 changed files with 7 additions and 13 deletions
|
@ -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:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue