summaryrefslogtreecommitdiff
path: root/pexpect/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/__init__.py')
-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 :