Skip to content
Browse files

Updated MailBase.__nonzero__ to include parts as well.

  • Loading branch information...
1 parent 137955a commit be80008c7d5a968099efe38c5d201f7376c3ab8e Unknown committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lamson/encoding.py
View
2 lamson/encoding.py
@@ -127,7 +127,7 @@ def __delitem__(self, key):
del self.headers[normalize_header(key)]
def __nonzero__(self):
- return self.body != None or len(self.headers)
+ return self.body != None or len(self.headers) or self.parts
def keys(self):
"""Returns the sorted keys."""

0 comments on commit be80008

Please sign in to comment.
Something went wrong with that request. Please try again.