Skip to content

Commit

Permalink
fixed error in saving classifier collection as images
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalitz committed May 10, 2023
1 parent 270e499 commit 8bbda5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamera/gui/classifier_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ def _OnSaveAsImages(self, list):
dirname = gui_util.directory_dialog(self._frame)
if dirname:
glyphs = [g for g in list]
glyphs.sort(lambda g1,g2: cmp(g1.get_main_id().lower(),g2.get_main_id().lower()))
glyphs.sort(key = lambda g: g.get_main_id().lower())
lastid = ""
nr = 0
for glyph in glyphs:
Expand Down

0 comments on commit 8bbda5d

Please sign in to comment.