Kaydet (Commit) 4ece778b authored tarafından Barry Warsaw's avatar Barry Warsaw

is_multipart(): Use isinstance() instead of type equality.

üst c4945495
...@@ -107,7 +107,7 @@ class Message: ...@@ -107,7 +107,7 @@ class Message:
def is_multipart(self): def is_multipart(self):
"""Return True if the message consists of multiple parts.""" """Return True if the message consists of multiple parts."""
if type(self._payload) is ListType: if isinstance(self._payload, ListType):
return True return True
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment