Remove use of debtcollector

We are not using any of the advanced functionality provided by this
library. Replace with warnings instead.

Change-Id: Iedc00b36707de2dfc8eb4e04027e735b1c7b6add
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-10-02 11:15:51 +01:00
parent bfe0dbb18d
commit c802a33fbc
3 changed files with 10 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
"""Thread-safe connection pool for python-binary-memcached."""
import debtcollector
import warnings
try:
import eventlet
@@ -29,8 +29,10 @@ LOG = log.getLogger(__name__)
if eventlet and eventlet.patcher.is_monkey_patched('thread'):
debtcollector.deprecate(
"Eventlet support is deprecated and will be removed."
warnings.warn(
"Eventlet support is deprecated and will be removed.",
category=DeprecationWarning,
stacklevel=3,
)

View File

@@ -21,8 +21,7 @@ import itertools
import queue
import threading
import time
import debtcollector
import warnings
try:
import eventlet
@@ -39,8 +38,10 @@ LOG = log.getLogger(__name__)
if eventlet and eventlet.patcher.is_monkey_patched('thread'):
debtcollector.deprecate(
"Eventlet support is deprecated and will be removed."
warnings.warn(
"Eventlet support is deprecated and will be removed.",
category=DeprecationWarning,
stacklevel=3,
)

View File

@@ -7,4 +7,3 @@ oslo.config>=8.1.0 # Apache-2.0
oslo.i18n>=5.0.0 # Apache-2.0
oslo.log>=4.2.1 # Apache-2.0
oslo.utils>=4.2.0 # Apache-2.0
debtcollector>=3.0.0 # Apache-2.0