diff options
-rw-r--r-- | contrib/RHEL4/ipachangeconf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/RHEL4/ipachangeconf.py b/contrib/RHEL4/ipachangeconf.py index 1a3615135..87b306f5d 100644 --- a/contrib/RHEL4/ipachangeconf.py +++ b/contrib/RHEL4/ipachangeconf.py @@ -29,13 +29,13 @@ def openLocked(filename, perms): fd = os.open(filename, os.O_RDWR | os.O_CREAT, perms) fcntl.lockf(fd, fcntl.LOCK_EX) - except OSError, (errno, strerr): + except OSError as e: if fd != -1: try: os.close(fd) except OSError: pass - raise IOError(errno, strerr) + raise IOError(e.errno, e.strerror) return os.fdopen(fd, "r+") |