summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-09-28 20:41:39 (GMT)
committerBarry Warsaw <barry@python.org>2002-09-28 20:41:39 (GMT)
commit4ece778bbc5bbb2408bc7494bf58924039d5eaa4 (patch)
tree786a752a7781b635f93250bb1b2928aa9eb57220
parentc494549566edd5bbcc95fa1252881d18bb0b3fca (diff)
downloadcpython-4ece778bbc5bbb2408bc7494bf58924039d5eaa4.zip
cpython-4ece778bbc5bbb2408bc7494bf58924039d5eaa4.tar.gz
cpython-4ece778bbc5bbb2408bc7494bf58924039d5eaa4.tar.bz2
is_multipart(): Use isinstance() instead of type equality.
-rw-r--r--Lib/email/Message.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class Message:
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