Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate AsyncSSH to new async/await syntax
This commit updates AsyncSSH to use the modern async/await syntax, now requiring Python 3.6 or later. The plan is to make these changes available as AsyncSSH 2.0.0, with those wishing to continue to use AsyncSSH on Python 3.4 or 3.5 staying on the AsyncSSH 1.x releases. In preparation for moving to 2.0, the following additional changes have also been made: * Removed optional loop argument from all public AsyncSSH APIs, consistent with the deprecation of this argument in the asyncio package in Python 3.8. Calls will now always use the event loop which is active at the time of the call. * Removed deprecated "session_encoding" and "session_errors" arguments from create_server() and listen() functions. These arguments were renamed to "encoding" and "errors" back in version 1.16.0 to be consistent with other AsyncSSH APIs. * Removed get_environment(), get_command(), and get_subsystem() methods on SSHServerProcess class. This information was made available as "env", "command", and "subsystem" properties of SSHServerProcess in AsyncSSH 1.11.0. * Removed support for non-async context managers on AsyncSSH connections and processes and SFTP client connections and file objects. Callers should use "async with" to invoke the async the context managers on these objects.
- Loading branch information