From 8c111a95f19f4216c300ef8e4d04146fa611efe1 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 15 Jan 2021 10:32:01 +0100 Subject: Convert to python3. --- nephilim/plugins/Library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nephilim/plugins/Library.py') diff --git a/nephilim/plugins/Library.py b/nephilim/plugins/Library.py index 6f2aad9..ed6fd98 100644 --- a/nephilim/plugins/Library.py +++ b/nephilim/plugins/Library.py @@ -102,7 +102,7 @@ class LibraryWidget(QtWidgets.QWidget): self.logger.info('Refreshing library.') self.library_model.fill(self.plugin.mpclient.db.values(), self.foldings.currentText().split('/')) - @Slot(unicode) + @Slot(str) def filter_library(self, text): """Hide all items that don't contain text.""" to_hide = [] @@ -262,7 +262,7 @@ class LibraryFolding(QtWidgets.QComboBox): @Slot() def _update_foldings(self): foldings = [] - for i in xrange(self.count()): + for i in range(self.count()): foldings.append(self.itemText(i)) self._settings.setValue('foldings', foldings) self._settings.setValue('cur_folding', self.currentIndex()) -- cgit v1.2.3