You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The re module supports unicode, so it might just work if str is replaced with basestring. If it were me, I would probably raise an exception if natsort_key was called on a non-string instead of just returning a tuple containing it.
I will take a look at this. I don't want to raise an exception for any non-string since it is designed to handle ints and floats as well. I'll make sure it supports unicode as well.
natsort silently fails to do anything useful with unicode strings:
The text was updated successfully, but these errors were encountered: