1. Konstantine Rybnikov
  2. polib

Commits

Konstantine Rybnikov  committed 0503fb1

implement f1 == f2 comparation for POFile's

  • Participants
  • Parent commits 84820a0
  • Branches default

Comments (0)

Files changed (1)

File polib.py

View file
  • Ignore whitespace
         False
         """
         return self.find(entry.msgid, by='msgid') is not None
-
+    
+    def __eq__(self, other):
+        return unicode(self) == unicode(other)
+    
     def append(self, entry):
         """
         Overriden method to check for duplicates entries, if a user tries to