From 3654b5b9b3286c34cb02a93504199e93bb90576c Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 12 Sep 2015 11:37:10 +0100 Subject: Add encoding parameter to pxsshu Closes gh-172 (alternative approach to the same problem) Closes gh-169 --- pexpect/pxssh.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 71f56a0..c5cbd35 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -95,9 +95,12 @@ class pxssh (spawn): def __init__ (self, timeout=30, maxread=2000, searchwindowsize=None, logfile=None, cwd=None, env=None, ignore_sighup=True, echo=True, - options={}): + options={}, encoding=None, codec_errors='strict'): - spawn.__init__(self, None, timeout=timeout, maxread=maxread, searchwindowsize=searchwindowsize, logfile=logfile, cwd=cwd, env=env, ignore_sighup=ignore_sighup, echo=echo) + spawn.__init__(self, None, timeout=timeout, maxread=maxread, + searchwindowsize=searchwindowsize, logfile=logfile, + cwd=cwd, env=env, ignore_sighup=ignore_sighup, echo=echo, + encoding=encoding, codec_errors=codec_errors) self.name = '' -- cgit v1.2.1