summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Library.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-15 10:32:01 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-15 10:32:01 +0100
commit8c111a95f19f4216c300ef8e4d04146fa611efe1 (patch)
treec1b5824387af39a6aeb74889022116b4281101b8 /nephilim/plugins/Library.py
parentdeb35230eb8ded52e9450cf1cc0aa218c62b9e02 (diff)
Convert to python3.HEADstickers
Diffstat (limited to 'nephilim/plugins/Library.py')
-rw-r--r--nephilim/plugins/Library.py4
1 files changed, 2 insertions, 2 deletions
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())