sckott / habanero

client for Crossref search API
https://habanero.readthedocs.io
MIT License
207 stars 30 forks source link

Fix python 2 compatibility when submitting unicode DOI #56

Closed jmaupetit closed 7 years ago

jmaupetit commented 7 years ago

Purpose

Submitting a unicode string as a DOI for content negotiation fails on python 2.

Proposal

Fix type detection in content negotiation to split unicode litteral (if any).

See this line.

Remark: we expect the new test to fail with python 2

sckott commented 7 years ago

@jmaupetit thx, you originally had WIP - done now?

jmaupetit commented 7 years ago

Yes sir!

sckott commented 7 years ago

thanks very much!