Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 unicode #19

Closed
axce1 opened this issue Mar 14, 2014 · 1 comment
Closed

python3 unicode #19

axce1 opened this issue Mar 14, 2014 · 1 comment
Labels

Comments

@axce1
Copy link

axce1 commented Mar 14, 2014

results = Post.query.whoosh_search('hi')

NameError Traceback (most recent call last)
in ()
----> 1 results = Post.query.whoosh_search('hi')
python3.3/site-packages/Flask_WhooshAlchemy-0.55-py3.3.egg/flask_whooshalchemy.py in whoosh_search(self, query, limit, fields, or_)
104 '''
105
--> 106 if not isinstance(query, unicode):
107 query = unicode(query)
108

NameError: global name 'unicode' is not defined

@jshipley
Copy link

unicode() should be str() in python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants