ubergrape / pyspotlight

A thin wrapper around the DBPedia Spotlight REST API
BSD 2-Clause "Simplified" License
58 stars 25 forks source link

Python 3 Fix #12

Open Dauth opened 8 years ago

Dauth commented 8 years ago

script works in python 3 with just a small fix.

replace "if (isinstance(value, basestring)" in the init file with "if (isinstance(value, (str,bytes))"

originell commented 8 years ago

don't you want to submit a pull request ;-)? So you are properly marked into this project's history?

oskrocha commented 8 years ago

I also had to do a small fix in the init file to make it work with python 3. Line 64: for key, value in dic.iteritems(): has to be changed with: for key, value in dic.items():

aolieman commented 8 years ago

Maintenance in this repo seems to have halted, so I did a new release based on my fork: https://pypi.python.org/pypi/pyspotlight/0.7.1

Issues and pull requests are welcome at https://github.com/aolieman/pyspotlight!