-
Notifications
You must be signed in to change notification settings - Fork 77
NameError: global name 'basestring' is not defined (python 3) #1
Comments
Thanks a lot for that. For licensing purposes, by which name would you like to be credited for I'll get this through as soon as you get back to me on those. Thanks again. On Fri, Mar 16, 2012 at 2:57 AM, leingang <
|
I found the snippet on the blog post that I linked to above. It's from a package known as PyEnchant http://packages.python.org/pyenchant/faq.html which is licensed under GNU LGPL. That's compatible with fysom's license, I think. You can credit me (Matthew Leingang) for the find, but not for the code. :-) |
Used the solution found here: oxplot/fysom#1
Fix taken from: oxplot/fysom#1 Replaces: alliedmodders#33
Lines of the form
isinstance(init,basestring)
raise aNameError
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 afterimport types
H/T http://www.rfk.id.au/blog/entry/preparing-pyenchant-for-python-3/
The text was updated successfully, but these errors were encountered: