summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2012-01-24 10:52:00 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-26 02:07:15 -0800
commitef1f9cfbaeb62fbabfcc175dc643baa125b393bb (patch)
tree821ff540ca7d1f3745ad90aacab0fd4adeed4fdf /xlators/features
parentfd61cd598b70fbc9442350483a3777d77990d257 (diff)
geo-rep: gsyncd: Python3 compat fixes
Change-Id: I2eef82faab3eed1189e3786a5dca296773e1caa0 BUG: 784498 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-on: http://review.gluster.com/2690 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/utils/syncdaemon/syncdutils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py
index 59defa711ed..b91b328b965 100644
--- a/xlators/features/marker/utils/syncdaemon/syncdutils.py
+++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py
@@ -258,9 +258,10 @@ def eintr_wrap(func, exc, *a):
while True:
try:
return func(*a)
- except exc, ex:
- if not ex[0] == EINTR:
- raise GsyncdError(ex[1])
+ except exc:
+ ex = sys.exc_info()[1]
+ if not ex.args[0] == EINTR:
+ raise GsyncdError(ex.args[1])
def select(*a):
return eintr_wrap(oselect.select, oselect.error, *a)