mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
is_multipart(): Use isinstance() instead of type equality.
This commit is contained in:
parent
c494549566
commit
4ece778bbc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue