From: Stefan Behnel Date: Sat, 21 Sep 2013 11:35:31 +0000 (+0200) Subject: Py2.4 fix X-Git-Tag: 0.20b1~318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48a63f585ab3723f86a3c11a3cf4e02a5e7364d0;p=platform%2Fupstream%2Fpython-cython.git Py2.4 fix --- 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])