commit | 4ece778bbc5bbb2408bc7494bf58924039d5eaa4 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Sat Sep 28 20:41:39 2002 +0000 |
committer | Barry Warsaw <barry@python.org> | Sat Sep 28 20:41:39 2002 +0000 |
tree | 786a752a7781b635f93250bb1b2928aa9eb57220 | |
parent | c494549566edd5bbcc95fa1252881d18bb0b3fca [diff] [blame] |
is_multipart(): Use isinstance() instead of type equality.
diff --git a/Lib/email/Message.py b/Lib/email/Message.py index db4b9a2..49ab266 100644 --- a/Lib/email/Message.py +++ b/Lib/email/Message.py
@@ -107,7 +107,7 @@ def is_multipart(self): """Return True if the message consists of multiple parts.""" - if type(self._payload) is ListType: + if isinstance(self._payload, ListType): return True return False