andybak/Pysftp — pull request #2 by radiosilence (2012-01-25 14:34:20+00:00)
Title: Added some nice things

Also made open() a context manager. I like context managers.

Check out the cd context manager, too!

Means you can do:

with self.server.ssh.cd(self.path):
output = self.server.remote(command)
return output