From 844bedd8fa75b955d42f8e12c2bd1695baf5d492 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 17 Jun 2019 09:11:01 -0400 Subject: [PATCH] Remove unused "time_func" This compat name is not used and is also referring to a deprecated API for the win32 case. Fixes: #4731 Change-Id: I0f2b07347c15455b58c27e29a19fb55e159f332a (cherry picked from commit 0fff647a8f1fb863ec99195a65cf6e64ce204445) --- lib/sqlalchemy/util/compat.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index 386aaf731f..11bfe7a037 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -12,7 +12,6 @@ import contextlib import inspect import operator import sys -import time py36 = sys.version_info >= (3, 6) @@ -349,11 +348,6 @@ else: from inspect import formatargspec as inspect_formatargspec # noqa -if win32 or jython: - time_func = time.clock -else: - time_func = time.time - # Fix deprecation of accessing ABCs straight from collections module # (which will stop working in 3.8). if py33: -- 2.47.2