bibanon / BASC-py4chan

Python wrapper for 4chan API. The BA's vastly improved fork of Edgeworth's original.
http://basc-py4chan.readthedocs.org/en/latest/index.html
Do What The F*ck You Want To Public License
55 stars 13 forks source link

`basestring` variable not used in Python 3, add compatibility layer #5

Closed antonizoon closed 9 years ago

antonizoon commented 9 years ago

Since all strings are Unicode in Python 3, the variables unicode and basestring are no longer used. This patch makes these variables work again in Python 3.

http://www.rfk.id.au/blog/entry/preparing-pyenchant-for-python-3/

However, the real solution is to modify get_boards() such that it no longer needs to use basestring. Though it has to be done in a way that both Python 2 and 3 will accept.