diff options
author | jquast <contact@jeffquast.com> | 2014-06-08 01:25:13 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2014-06-15 18:43:30 -0700 |
commit | d0fd37033e1a48bff38399394604a653cd0f3baa (patch) | |
tree | b034b7a101e6ba03e0c6099231627b360bbaa7e7 | |
parent | 0fe779fbb0db8f3ea4cb8198db526378902121c4 (diff) | |
download | pexpect-d0fd37033e1a48bff38399394604a653cd0f3baa.tar.gz |
Another "as err" vs ", err" exception fix.
as well as another indent-by-4 fix
-rw-r--r-- | pexpect/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py index c7411cb..1442aa8 100644 --- a/pexpect/__init__.py +++ b/pexpect/__init__.py @@ -731,11 +731,11 @@ class spawn(object): try: child_name = os.ttyname(tty_fd) break - except OSError, err: - tries += 1 - if tries > _max_tries: - raise - time.sleep(_poll) + except OSError: + tries += 1 + if tries > _max_tries: + raise + time.sleep(_poll) # Disconnect from controlling tty. Harmless if not already connected. try: |