Connection as a context manager #1

merged 1 commit into from Sep 10, 2013


None yet
2 participants

shaunduncan commented Sep 10, 2013

I'd like to use remoto.Connection as a context manager so I can do things like:

with remoto.Connection('') as conn:
    run(conn, ['ls', '-la'])

This simple addition will let me do that.


This comment has been minimized.

Show comment Hide comment

alfredodeza Sep 10, 2013


Thank you sir


alfredodeza commented Sep 10, 2013

Thank you sir

alfredodeza added a commit that referenced this pull request Sep 10, 2013

Merge pull request #1 from shaunduncan/master
Connection as a context manager

@alfredodeza alfredodeza merged commit 20368fb into alfredodeza:master Sep 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment