diff options
Diffstat (limited to 'Lib/email/iterators.py')
-rw-r--r-- | Lib/email/iterators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/iterators.py b/Lib/email/iterators.py index e4476e3..3adc4a0 100644 --- a/Lib/email/iterators.py +++ b/Lib/email/iterators.py @@ -39,7 +39,7 @@ def body_line_iterator(msg, decode=False): """ for subpart in msg.walk(): payload = subpart.get_payload(decode=decode) - if isinstance(payload, basestring): + if isinstance(payload, str): for line in StringIO(payload): yield line |