From 4913b28bfc6738f49241113202ce1be02bbe9368 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Thu, 30 Aug 2018 11:34:19 -0600 Subject: Part of previous change restored somehow the change from if test to try block got partly lost during commit. changing else->except --- runtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtest.py b/runtest.py index 697b872..45ffffc 100755 --- a/runtest.py +++ b/runtest.py @@ -772,7 +772,7 @@ os.environ["python_executable"] = python #TODO: clean up when py2 support is dropped try: time_func = time.perf_counter -else: +except AttributeError: if sys.platform == 'win32': time_func = time.clock else: -- cgit v0.12