diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2004-02-29 09:05:58 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2004-02-29 09:05:58 +0000 |
commit | e8f9f23b20ae4e513afc7194c35c929630236080 (patch) | |
tree | 36db20230156ddfde31045e7db43f5e16a76ceb0 | |
parent | cbf5d667660f4c72d42c79c47347942800d95201 (diff) | |
download | pexpect-e8f9f23b20ae4e513afc7194c35c929630236080.tar.gz |
Just converting spaces to tabs.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@210 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r-- | pexpect/pexpect.py | 4 | ||||
-rwxr-xr-x | pexpect/tools/websync.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index 4e795ea..7a98397 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -245,9 +245,9 @@ class spawn: os.close (self.child_fd) if wait: try: - os.waitpid (self.pid, 0) + os.waitpid (self.pid, 0) except OSError: - pass + pass self.child_fd = -1 self.__child_fd_owner = None diff --git a/pexpect/tools/websync.py b/pexpect/tools/websync.py index 5c913ee..86c9d32 100755 --- a/pexpect/tools/websync.py +++ b/pexpect/tools/websync.py @@ -11,13 +11,13 @@ import getpass X = getpass.getpass('Password: ') -p = pexpect.spawn ('ssh noah@use-pr-shell1.sourceforge.net "cd htdocs;rm index.html;wget http://www.noah.org/python/pexpect/index.html"') +p = pexpect.spawn ('ssh noah@use-pr-shell1.sourceforge.net "cd htdocs;rm -f index.html;wget http://www.noah.org/python/pexpect/index.html"') p.expect ('password:') p.sendline (X) p.expect (pexpect.EOF) print p.before -p = pexpect.spawn ('ssh noah@use-pr-shell1.sourceforge.net "cd htdocs;rm clean.css;wget http://www.noah.org/python/pexpect/clean.css"') +p = pexpect.spawn ('ssh noah@use-pr-shell1.sourceforge.net "cd htdocs;rm -f clean.css;wget http://www.noah.org/python/pexpect/clean.css"') p.expect ('password:') p.sendline (X) p.expect (pexpect.EOF) |