From 4ece778bbc5bbb2408bc7494bf58924039d5eaa4 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 28 Sep 2002 20:41:39 +0000 Subject: is_multipart(): Use isinstance() instead of type equality. --- Lib/email/Message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12