Konstantine Rybnikov avatar Konstantine Rybnikov committed e118365

more fixes

Comments (0)

Files changed (2)


         return unicode(rv)
     def __eq__(self, other):
-        pass
+        if not isinstance(other, Diff):
+            return False
+        return self.full_represent() == other.full_represent()
 def compare_two_pofiles(pofile1, pofile2):
     """Returns :class:`~Diff` object that represents difference between two po


                         msgstr=u"Second msgstr")
         diff.entry_append('rm', entry)
         entry = [POEntry(msgid=u"Third msgid",
+                         msgstr=u"Third msgstr"),
+                 POEntry(msgid=u"Third msgid",
                          msgstr=u"Third msgstr")]
         diff.entry_append('modify', entry)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.