summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2014-06-08 01:25:13 -0700
committerThomas Kluyver <takowl@gmail.com>2014-06-15 18:43:30 -0700
commitd0fd37033e1a48bff38399394604a653cd0f3baa (patch)
treeb034b7a101e6ba03e0c6099231627b360bbaa7e7
parent0fe779fbb0db8f3ea4cb8198db526378902121c4 (diff)
downloadpexpect-d0fd37033e1a48bff38399394604a653cd0f3baa.tar.gz
Another "as err" vs ", err" exception fix.
as well as another indent-by-4 fix
-rw-r--r--pexpect/__init__.py10
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: