summaryrefslogtreecommitdiffstats
path: root/src/tests/intg/ds_openldap.py
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-08-04 13:27:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-08-04 16:20:46 +0200
commit872aa0d01d1642f9c8fc204d4c33e5c5640c3352 (patch)
treef51e83bf36f05c3a93017b55d0141a7924061dbb /src/tests/intg/ds_openldap.py
parent2ab9822a792e26e9ddb47cbb6bc788a0727c8556 (diff)
downloadsssd-872aa0d01d1642f9c8fc204d4c33e5c5640c3352.tar.gz
sssd-872aa0d01d1642f9c8fc204d4c33e5c5640c3352.tar.xz
sssd-872aa0d01d1642f9c8fc204d4c33e5c5640c3352.zip
intg: Modernize 'except' clauses
The 'as' syntax works from Python 2 on, and Python 3 dropped the "comma" syntax. Reviewed-by: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'src/tests/intg/ds_openldap.py')
-rw-r--r--src/tests/intg/ds_openldap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/intg/ds_openldap.py b/src/tests/intg/ds_openldap.py
index c58e53a2a..42a2c9003 100644
--- a/src/tests/intg/ds_openldap.py
+++ b/src/tests/intg/ds_openldap.py
@@ -271,7 +271,7 @@ class DSOpenLDAP(DS):
if ++attempt > 30:
raise Exception("Failed to stop slapd")
time.sleep(1)
- except IOError, e:
+ except IOError as e:
if e.errno != errno.ENOENT:
raise