mirror of https://github.com/python/cpython.git
Test with an actual mbox caught a trivial error.
This commit is contained in:
parent
304b6a3225
commit
c9838f9fcb
|
@ -690,7 +690,7 @@ def getheadertext(self, pred = None):
|
||||||
if i > 0:
|
if i > 0:
|
||||||
hit = pred(line[:i].lower())
|
hit = pred(line[:i].lower())
|
||||||
if hit: headers.append(line)
|
if hit: headers.append(line)
|
||||||
return ''.joinfields(headers)
|
return ''.join(headers)
|
||||||
|
|
||||||
def getbodytext(self, decode = 1):
|
def getbodytext(self, decode = 1):
|
||||||
"""Return the message's body text as string. This undoes a
|
"""Return the message's body text as string. This undoes a
|
||||||
|
|
Loading…
Reference in New Issue