From ef1f9cfbaeb62fbabfcc175dc643baa125b393bb Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Tue, 24 Jan 2012 10:52:00 +0530 Subject: geo-rep: gsyncd: Python3 compat fixes Change-Id: I2eef82faab3eed1189e3786a5dca296773e1caa0 BUG: 784498 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.com/2690 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Csaba Henk --- xlators/features/marker/utils/syncdaemon/syncdutils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xlators/features') 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) -- cgit