]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove unused "time_func"
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2019 13:11:01 +0000 (09:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Jun 2019 13:11:01 +0000 (09:11 -0400)
This compat name is not used and is also referring to a
deprecated API for the win32 case.

Fixes: #4731
Change-Id: I0f2b07347c15455b58c27e29a19fb55e159f332a

lib/sqlalchemy/util/compat.py

index 386aaf731fb68de0af2c570bd45d113995a58870..11bfe7a037eb96605deb6fb4f53ca56024d1b943 100644 (file)
@@ -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: