diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-04-22 13:35:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-04-22 13:35:28 +0000 |
| commit | 2492387789ece466e19ee1a76ce5f574bfc123e6 (patch) | |
| tree | 206b84ddf2e326980b77d74a4c8633a7034cd091 /openstack/common/lockutils.py | |
| parent | 572bb9ddb720c7cf948906c72be30b022ded0df0 (diff) | |
| parent | 120ddeff7e1b8956fe35a7a39fae87ddcac8301c (diff) | |
| download | oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.tar.gz oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.tar.xz oslo-2492387789ece466e19ee1a76ce5f574bfc123e6.zip | |
Merge "Improve Python 3.x compatibility"
Diffstat (limited to 'openstack/common/lockutils.py')
| -rw-r--r-- | openstack/common/lockutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/lockutils.py b/openstack/common/lockutils.py index ef42b9b..892d821 100644 --- a/openstack/common/lockutils.py +++ b/openstack/common/lockutils.py @@ -82,7 +82,7 @@ class _InterProcessLock(object): # to have a laughable 10 attempts "blocking" mechanism. self.trylock() return self - except IOError, e: + except IOError as e: if e.errno in (errno.EACCES, errno.EAGAIN): # external locks synchronise things like iptables # updates - give it some time to prevent busy spinning |
