Skip to content

Instantly share code, notes, and snippets.

@smurn
smurn / paramiko291monkeypatch.py
Created July 17, 2014 09:04
Monkey patch for paramiko issue 291
"""
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,