iro/model/message.py
branchdevel
changeset 193 e5ec4bfa4929
parent 192 6c708c334f37
child 198 85ede27b1add
--- a/iro/model/message.py	Mon Feb 27 22:20:19 2012 +0100
+++ b/iro/model/message.py	Mon Feb 27 22:21:22 2012 +0100
@@ -46,8 +46,8 @@
         if len(self.attachments) != len(other.attachments):
             return False
 
-        for i in range(len(self.attachments)):
-            if self.attachments[i] != other.attachments[i]:
+        for a in self.attachments:
+            if a not in other.attachments:
                 return False
         return True