diff options
author | Thomas Kluyver <thomas@kluyver.me.uk> | 2018-02-06 15:10:17 +0000 |
---|---|---|
committer | Thomas Kluyver <thomas@kluyver.me.uk> | 2018-02-06 15:10:17 +0000 |
commit | 5da9fc0874eea9ff2948353e68185f2cbb9c0b98 (patch) | |
tree | a75ecb99af6d3197ee44935a62cdc0e69f5012e7 | |
parent | 78ca448e14babf7aa5eaeeb50dbfa30efe43badf (diff) | |
download | pexpect-5da9fc0874eea9ff2948353e68185f2cbb9c0b98.tar.gz |
Fix name in example code
-rw-r--r-- | pexpect/pty_spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index 70cba00..7ebf029 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -730,7 +730,7 @@ class spawn(SpawnBase): s = struct.pack("HHHH", 0, 0, 0, 0) a = struct.unpack('hhhh', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ , s)) - if not self.closed: + if not p.closed: p.setwinsize(a[0],a[1]) # Note this 'p' is global and used in sigwinch_passthrough. |