mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: fix for sort_func returning None as None cannot be ordered in py3
This commit is contained in:
parent
eced0f25b3
commit
edfff91424
@ -65,14 +65,14 @@ class HistoryMixin(object):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user