Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from limburgher/text
Browse files Browse the repository at this point in the history
Fix import indent sorting.
  • Loading branch information
limburgher authored Jul 8, 2021
2 parents da2c169 + 96d3573 commit fdf0fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/myimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def __init__(self, parent, indents):
wx.Dialog.__init__(self, parent, -1, "Adjust styles",
style = wx.DEFAULT_DIALOG_STYLE)

indents.sort(lambda i1, i2: -util.cmpfunc(len(i1.lines), len(i2.lines)))
indents.sort(key=lambda indent: indent.lines)

vsizer = wx.BoxSizer(wx.VERTICAL)

Expand Down

0 comments on commit fdf0fa7

Please sign in to comment.