mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 04:24:36 +02:00
py3: fix for sort_func returning None as None cannot be ordered in py3
This commit is contained in:
parent
eced0f25b3
commit
edfff91424
1 changed files with 2 additions and 2 deletions
|
|
@ -65,14 +65,14 @@ def clear_history(self):
|
|||
|
||||
class HistoryLineEdit2(LineEdit, HistoryMixin):
|
||||
|
||||
def __init__(self, parent=None, completer_widget=None, sort_func=lambda x:None):
|
||||
def __init__(self, parent=None, completer_widget=None, sort_func=lambda x:b''):
|
||||
LineEdit.__init__(self, parent=parent, completer_widget=completer_widget, sort_func=sort_func)
|
||||
|
||||
|
||||
class HistoryComboBox(EditWithComplete, HistoryMixin):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
EditWithComplete.__init__(self, parent, sort_func=lambda x:None)
|
||||
EditWithComplete.__init__(self, parent, sort_func=lambda x:b'')
|
||||
|
||||
|
||||
class ColorButton(QPushButton):
|
||||
|
|
|
|||
Loading…
Reference in a new issue