Skip to content

Instantly share code, notes, and snippets.

@smurn
smurn / paramiko291monkeypatch.py
Created Jul 17, 2014
Monkey patch for paramiko issue 291
View paramiko291monkeypatch.py
"""
Add binary-mode options to SSHClient.exec_command(...) for binary stdout, stderr channels.
See: https://github.com/paramiko/paramiko/issues/291
"""
import paramiko
def _patched_exec_command(self,