From 48a63f585ab3723f86a3c11a3cf4e02a5e7364d0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 21 Sep 2013 13:35:31 +0200 Subject: [PATCH] Py2.4 fix --- Cython/Build/Dependencies.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index ec45a0e..b44cb7d 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -801,12 +801,13 @@ if os.environ.get('XML_RESULTS'): compile_result_dir = os.environ['XML_RESULTS'] def record_results(func): def with_record(*args): + t = time.time() + success = True try: - t = time.time() - success = True - func(*args) - except: - success = False + try: + func(*args) + except: + success = False finally: t = time.time() - t module = fully_qualifeid_name(args[0]) -- 2.7.4