SuLab / WikidataIntegrator

A Wikidata Python module integrating the MediaWiki API and the Wikidata SPARQL endpoint
MIT License
244 stars 46 forks source link

fix(wdi_login): Remove byte-encoding from split #196

Closed kwisatz closed 1 year ago

kwisatz commented 2 years ago

The question mark that is part of the oauth callback URL is not byte-encoded. Keeping the byte-encoding mark in here leads to

    response_qs = self.response_qs.split(b'?')[-1]
TypeError: must be str or None, not bytes

This may differ per platform, but then maybe this PR will spark a discussion that has not yet been started from issue #181