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
SCPClient(transport).get(...) is not that much more to write.
I agree that this makes sense conceptually, but the truth is that SCPClient closes the channel after each get() or put() invocation so there is no real point in writing the proper with SCPClient(...) as client: client.get(...) instead of the chained SCPClient(...).get(...).
I'd like to add two utility functions to the scp module -- get and put, something like;
In many one-off use cases, creating an SCPClient object is more syntactic noise than necessary.
I'd be happy to work on patches if this sounds reasonable.
The text was updated successfully, but these errors were encountered: