# HG changeset patch # User Jeff Hammel # Date 1606252533 28800 # Node ID cabe9753505775b374f36ce56e5b8fcce15a8513 # Parent d0ad671824782728fa5df094b633853b3fe9cdba py3 diff -r d0ad67182478 -r cabe97535057 toolbox/search.py --- a/toolbox/search.py Tue Nov 24 13:14:27 2020 -0800 +++ b/toolbox/search.py Tue Nov 24 13:15:33 2020 -0800 @@ -52,16 +52,10 @@ if key not in self.keywords: writer.add_field(key, fields.KEYWORD) self.keywords.add(key) - if not isinstance(kw[key], basestring): + if not isinstance(kw[key], str): kw[key] = ' '.join(kw[key]) kw[key] = unicode(kw[key]) - # convert to unicode for whoosh - # really whoosh should do this for us - # and really python should be unicode-based :( - name = unicode(name) - description = unicode(description) - writer.update_document(name=name, description=description, **kw) writer.commit()