From 84ffcdb864d3191f8e25a36799a80948ea7bba3f Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 12 Sep 2015 11:36:21 +0100 Subject: Update docstring mention of unicode interface --- pexpect/pty_spawn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index cdbb54f..6fac890 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -117,7 +117,7 @@ class spawn(SpawnBase): child = pexpect.spawn('some_command') child.logfile_read = sys.stdout - Remember to use spawnu instead of spawn for the above code if you are + You will need to pass an encoding to spawn in the above code if you are using Python 3. To separately log output sent to the child use logfile_send:: -- cgit v1.2.1