In this commit, I refresh the vendored _winapi.py module from its reference implementation. Merging this commit incorporates the fix for #193 and also includes (tested) fixes for #488 and #498.
It does restore the tab indentation, which makes it easier to sync the code with the reference implementation. I recommend keeping the tab indentation for that reason, though if you want to convert it to spaces, feel free to do so or ask and I can do that as a separate commit.
This PR comes against the 1.13 branch as I wanted to make the fixes available to be back ported to that version. It should be able to be readily merged into 1.14, 1.15, and master by simply accepting the whole _winapi file.
Refresh vendored _winapi module.
Replace use of six with imports from py3compat
Remove references to other modules
Merge with 1.13
Add builtins to compatibility imports
Re: tabs, I am starting to add linting to my processes for projects and I bet that might get mad about tabs eventually, but that can be handled then (& probably just told to skip).
Aw boo I thought we already implemented #505 and was trying to find the paramiko appveyor page. But no, I was thinking of invoke.
Tests pass for me on Unix with this merged, though, so full speed ahead...
Changelog re #525