Closed ruairif closed 9 years ago
It looks good :+1: I think it can be merged after the following:
__iter__
check is OK;Unicode in python2 has no 'iter' so if it's written as
if (isinstance(values, (bytes, str)) or
not hasattr(values, '__iter__')):
The first check catches str in python2 and bytes, str/unicode in python3 The second check catches unicode and all non iterables in python2 and all non iterables in python3
@ruairif you're right, thanks for the explanation
With the previous way it was using only python 2.7. What's the best way to set up travis for it?
It doesn't matter which Python version we use to start tox, leaving it equal to 2.7 is fine.
Thanks @ruairif!
thanks for contributing this @ruairif. can someone review & merge this? /cc @kalessin @kmike @dangra