Commits

David Jean Louis  committed 641abe0

Make sure __contains__ returns a boolean value

  • Participants
  • Parent commits 4ce9b7b

Comments (0)

Files changed (1)

         ``entry``
             an instance of :class:`~polib._BaseEntry`.
         """
-        return self.find(entry.msgid, by='msgid', msgctxt=entry.msgctxt)
+        return self.find(entry.msgid, by='msgid', msgctxt=entry.msgctxt) \
+            is not None
 
     def __eq__(self, other):
         return str(self) == str(other)