Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make SFTPClient._async_request check basestring, not str #235
Arround line 700, we got :
Which mean you can't pass subclasses of unicode there. Either you make this check :
Or you make an explicit message explaining you reject non encoded strings. Otherwise, it's hard to understand what's going on when you get :
Thanks for looking out! This should have been fixed in the recent merge of Python 3 support; that line now looks like this:
This change is live in version 1.13 and I will go backport it to a few older branches that are Python 2 only; their next bugfix releases will have the change.