diff options
author | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2015-12-16 22:38:29 +0100 |
---|---|---|
committer | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2015-12-16 22:38:29 +0100 |
commit | ddd4bfd4258eb080c128713600aaee95fee66b85 (patch) | |
tree | 8a2f617b1354f46afa68a0b1cfc2c50f7b1fb011 | |
parent | c1fa69bc90eef9e680e5daac0ebd9d07b57817b5 (diff) | |
download | pexpect-ddd4bfd4258eb080c128713600aaee95fee66b85.tar.gz |
Rename spawnpty to _spawnpty
-rw-r--r-- | pexpect/pty_spawn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index bb0c099..2855cfa 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -290,7 +290,7 @@ class spawn(SpawnBase): self.args = [a if isinstance(a, bytes) else a.encode(self.encoding) for a in self.args] - self.ptyproc = self.spawnpty(self.args, env=self.env, + self.ptyproc = self._spawnpty(self.args, env=self.env, cwd=self.cwd, **kwargs) self.pid = self.ptyproc.pid @@ -300,7 +300,7 @@ class spawn(SpawnBase): self.terminated = False self.closed = False - def spawnpty(self, args, **kwargs): + def _spawnpty(self, args, **kwargs): '''Spawn a pty and return an instance of PtyProcess.''' return ptyprocess.PtyProcess.spawn(args, **kwargs) |