Skip to content

Commit

Permalink
Merge branch 'issue-44-solaris-try-3' of github.com:pexpect/pexpect i…
Browse files Browse the repository at this point in the history
…nto issue-44-solaris-try-3
  • Loading branch information
jquast committed Jun 24, 2014
2 parents 3a5a8a6 + 033393a commit 1ef9088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pexpect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def __pty_make_controlling_tty(self, tty_fd):
try:
fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
os.close(fd)
except OSError, err:
except OSError as err:
if err.errno != errno.ENXIO:
raise

Expand All @@ -739,7 +739,7 @@ def __pty_make_controlling_tty(self, tty_fd):
fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
os.close(fd)
raise ExceptionPexpect("OSError of errno.ENXIO should be raised.")
except OSError, err:
except OSError as err:
if err.errno != errno.ENXIO:
raise

Expand Down

0 comments on commit 1ef9088

Please sign in to comment.