druid-io / pydruid

A Python connector for Druid
Other
509 stars 200 forks source link

[py2] fix str check in parse_datasource #106

Closed mistercrunch closed 6 years ago

mistercrunch commented 6 years ago

Checking for str type in python2.* doesn't work because in many cases string will be unicode.

This PR makes use of the six lib to make the call py2/3 compatible