Skip to content
Snippets Groups Projects
Commit 04e0e0e73892 authored by Matt Harbison's avatar Matt Harbison
Browse files

polib: drop an unused local function

Caught by PyCharm.

Differential Revision: https://phab.mercurial-scm.org/D7745
parent 943e34522b37
No related branches found
No related tags found
No related merge requests found
......@@ -551,18 +551,6 @@
offsets = []
entries = self.translated_entries()
# the keys are sorted in the .mo file
def cmp(_self, other):
# msgfmt compares entries with msgctxt if it exists
self_msgid = _self.msgctxt and _self.msgctxt or _self.msgid
other_msgid = other.msgctxt and other.msgctxt or other.msgid
if self_msgid > other_msgid:
return 1
elif self_msgid < other_msgid:
return -1
else:
return 0
# add metadata entry
entries.sort(key=lambda o: o.msgctxt or o.msgid)
mentry = self.metadata_as_entry()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment