Skip to content

Commit

Permalink
Updated MailBase.__nonzero__ to include parts as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Dec 12, 2009
1 parent 137955a commit be80008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lamson/encoding.py
Expand Up @@ -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."""
Expand Down

0 comments on commit be80008

Please sign in to comment.