diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-07 10:09:41 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-07 10:09:41 -0400 |
commit | 3ca8b453088ac6fb815e2f39c9a705b49bfb188c (patch) | |
tree | efd74a0b90d051abe7e5871a2868c29cdbece397 /lib/sqlalchemy/util/compat.py | |
parent | bb32b59cd4e3477402c44d70ef6b5a12827bb429 (diff) | |
download | sqlalchemy-3ca8b453088ac6fb815e2f39c9a705b49bfb188c.tar.gz |
Revert "Use monotonic time for pool age measurement"
This reverts commit 0220b58917b5a979891b5765f6ac5095e0368489.
I completely misread https://www.python.org/dev/peps/pep-0418/#rationale
and the accuracy of monotonic() is *worse* on windows than time.time(),
which is bizarre.
Change-Id: I2d571e268a2051bea68736507773d3904403af9e
Diffstat (limited to 'lib/sqlalchemy/util/compat.py')
-rw-r--r-- | lib/sqlalchemy/util/compat.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index b94ea353e..d3fefa526 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -109,8 +109,6 @@ if py3k: from io import StringIO from itertools import zip_longest from time import perf_counter - from time import monotonic as monotonic_time - from urllib.parse import ( quote_plus, unquote_plus, @@ -209,7 +207,6 @@ else: from cStringIO import StringIO as byte_buffer # noqa from itertools import izip_longest as zip_longest # noqa from time import clock as perf_counter # noqa - from time import time as monotonic_time # noqa from urllib import quote # noqa from urllib import quote_plus # noqa from urllib import unquote # noqa |