snare / scruffy

Scruffy. The Janitor.
MIT License
23 stars 10 forks source link

Improved py2 py3 string compat #17

Closed zcutlip closed 5 years ago

zcutlip commented 5 years ago

Fix several instances of string type checking, by replacing type() with isintance(obj, string_types)

String type checking was failing when called from code that uses future-compatible string classes

Also fix a couple small, but potentially critical bugs the linter caught: