mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
is_multipart(): Use isinstance() instead of type equality.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user