From e6e1349f5f3c7d6a081b932d2b22f87f3a0b4be0 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 13 Apr 2024 23:46:02 +0900 Subject: [PATCH] Remove unused dependency The trollius library is required only in Python <= 3.4, but currently Python 3.8 is the minimum supported version. --- gnocchi/statsd.py | 5 +---- setup.cfg | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/gnocchi/statsd.py b/gnocchi/statsd.py index 42b6deeae..11b229bd9 100644 --- a/gnocchi/statsd.py +++ b/gnocchi/statsd.py @@ -12,13 +12,10 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. +import asyncio import itertools import uuid -try: - import asyncio -except ImportError: - import trollius as asyncio import daiquiri from oslo_config import cfg diff --git a/setup.cfg b/setup.cfg index 72c507116..594ce831a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,7 +42,6 @@ install_requires = ujson voluptuous>=0.8.10 werkzeug - trollius; python_version < '3.4' tenacity>=5.0.0 WebOb>=1.4.1 Paste