Commit 4bfcd7c6 authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

Fix deprecation warning about importlib.abc.Traversable.

Closes #40037.
parent f02dde27
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -52,6 +52,12 @@ from chutney.Util import (
)
from chutney.network_tests import NetworkTestFailure
from collections.abc import Collection

try:
    # Added in Python 3.11
    from importlib.resources.abc import Traversable
except ImportError:
    # Deprecated since Python 3.12
    from importlib.abc import Traversable
from typeguard import check_type