summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2015-02-27 09:22:34 -0800
committerThomas Kluyver <takowl@gmail.com>2015-02-27 09:22:34 -0800
commite067741654f4d6c5498bdb11a2d703640dc32758 (patch)
tree24982fc5c714208de5bf318c0e5af20a1a86f68e
parent41006b799203884ad339c1f2126ca80207f03442 (diff)
downloadpexpect-git-e067741654f4d6c5498bdb11a2d703640dc32758.tar.gz
Fix deprecated runu function
-rw-r--r--pexpect/__init__.py3
1 files changed, 2 insertions, 1 deletions
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 :