# HG changeset patch # User Jeff Hammel # Date 1606252467 28800 # Node ID d0ad671824782728fa5df094b633853b3fe9cdba # Parent 8e13c2f6c2d7574def23dbc12a49aab57597d061 py3 diff -r 8e13c2f6c2d7 -r d0ad67182478 toolbox/model.py --- a/toolbox/model.py Tue Nov 24 13:13:36 2020 -0800 +++ b/toolbox/model.py Tue Nov 24 13:14:27 2020 -0800 @@ -139,7 +139,7 @@ project[field] = list(set([i.strip() for i in project[field] if i.strip()])) index = self.index.setdefault(field, {}) values = project[field] - if isinstance(values, basestring): + if isinstance(values, str): values = [values] for value in values: index.setdefault(value, set()).update([project['name']]) @@ -161,7 +161,7 @@ results = self._projects.keys() results = set(results) for key, values in query.items(): - if isinstance(values, basestring): + if isinstance(values, str): values = [values] for value in values: results.intersection_update(self.index.get(key, {}).get(value, set()))