diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-05-04 17:26:30 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-05-04 17:26:30 -0500 |
commit | 105eadbbac84290818e5809c58bd44f43bea3d2d (patch) | |
tree | 88dd395301c43afbf902034ba99fb7840805f265 | |
parent | 1c1fd4e56cc29001837a4ccae3eae990c4bb3b82 (diff) | |
download | oslo-log-105eadbbac84290818e5809c58bd44f43bea3d2d.tar.gz |
Remove monotonic usage
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.
Change-Id: Id250b92d11aeb6fa02e264610bfe8e8c71df7e26
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r-- | lower-constraints.txt | 1 | ||||
-rw-r--r-- | oslo_log/rate_limit.py | 6 | ||||
-rw-r--r-- | requirements.txt | 1 |
3 files changed, 1 insertions, 7 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt index fa7175d..ad425cb 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -22,7 +22,6 @@ keystoneauth1==3.4.0 linecache2==1.0.0 MarkupSafe==1.0 mccabe==0.2.1 -monotonic==1.4;python_version<'3.3' mox3==0.25.0 msgpack==0.5.6 netaddr==0.7.19 diff --git a/oslo_log/rate_limit.py b/oslo_log/rate_limit.py index ae486ab..05ad581 100644 --- a/oslo_log/rate_limit.py +++ b/oslo_log/rate_limit.py @@ -14,11 +14,7 @@ import logging - -try: - from time import monotonic as monotonic_clock # noqa -except ImportError: - from monotonic import monotonic as monotonic_clock # noqa +from time import monotonic as monotonic_clock class _LogRateLimit(logging.Filter): diff --git a/requirements.txt b/requirements.txt index 963a95e..04331e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,3 @@ oslo.serialization>=2.25.0 # Apache-2.0 debtcollector>=1.19.0 # Apache-2.0 pyinotify>=0.9.6;sys_platform!='win32' and sys_platform!='darwin' and sys_platform!='sunos5' # MIT python-dateutil>=2.7.0 # BSD -monotonic>=1.4;python_version<'3.3' # Apache-2.0 |