From e067741654f4d6c5498bdb11a2d703640dc32758 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 27 Feb 2015 09:22:34 -0800 Subject: Fix deprecated runu function --- pexpect/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pexpect/__init__.py') diff --git a/pexpect/__init__.py b/pexpect/__init__.py index 9b80c1d..f7e13fd 100644 --- a/pexpect/__init__.py +++ b/pexpect/__init__.py @@ -220,8 +220,9 @@ def runu(command, timeout=30, withexitstatus=False, events=None, extra_args=None, logfile=None, cwd=None, env=None, **kwargs): """Deprecated: pass encoding to run() instead. """ + kwargs.setdefault('encoding', 'utf-8') return run(command, timeout=timeout, withexitstatus=withexitstatus, events=events, extra_args=extra_args, logfile=logfile, cwd=cwd, - env=env, _spawn=spawnu, **kwargs) + env=env, **kwargs) # vim: set shiftround expandtab tabstop=4 shiftwidth=4 ft=python autoindent : -- cgit v1.2.1