You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2019. It is now read-only.
Lines of the form isinstance(init,basestring) raise a NameError in python 3 because there is no such type anymore. Here is a patch which makes the module work in python 3. I put it right after import types
try:
unicode = unicode
except NameError:
# 'unicode' is undefined, must be Python 3
str = str
unicode = str
bytes = bytes
basestring = (str,bytes)
else:
# 'unicode' exists, must be Python 2
str = str
unicode = unicode
bytes = str
basestring = basestring
Lines of the form
isinstance(init,basestring)raise aNameErrorin python 3 because there is no such type anymore. Here is a patch which makes the module work in python 3. I put it right afterimport typesH/T http://www.rfk.id.au/blog/entry/preparing-pyenchant-for-python-3/