diff options
author | Angus Pearson <a7cp3ar50n@gmail.com> | 2016-12-04 16:53:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-04 16:53:27 +0000 |
commit | fb09a5a0c6b4c599b9e364c001f6f26bd2936a14 (patch) | |
tree | c800367a0892db27213ff896fd94cacb9a8a4929 /pexpect/pty_spawn.py | |
parent | b1d18e70416569d0916a32a9139eb8c4a7fe467b (diff) | |
download | pexpect-git-fb09a5a0c6b4c599b9e364c001f6f26bd2936a14.tar.gz |
Update docstring for class spawn.__init__ in pty_spawn.py to remove reference to deprecated spawnu in favour of spawn with ``encoding`` keyword argument
``spawnu`` deprecated according to line 805 of `pty_spawn.py` and issue #159
Diffstat (limited to 'pexpect/pty_spawn.py')
-rw-r--r-- | pexpect/pty_spawn.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index d1c6df7..ded9e20 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -106,8 +106,9 @@ class spawn(SpawnBase): child = pexpect.spawn('some_command') child.logfile = sys.stdout - # In Python 3, spawnu should be used to give str to stdout: - child = pexpect.spawnu('some_command') + # In Python 3, spawn with the argument ``encoding`` should be used to ensure utf-8 + encoded data is sent to stdout: + child = pexpect.spawn('some_command', encoding='utf-8') child.logfile = sys.stdout The logfile_read and logfile_send members can be used to separately log |