Closed adambom closed 7 years ago
In python2 it's possible to pass a unicode string as a selector, which doesn't trigger this condition, causing an error. By using six.string_types instead of str we make sure to test for both kinds of strings.
unicode
six.string_types
str
In python2 it's possible to pass a
unicode
string as a selector, which doesn't trigger this condition, causing an error. By usingsix.string_types
instead ofstr
we make sure to test for both kinds of strings.