Commit 49a744fe authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

Merge branch 'traversable' into 'main'

Fix deprecation warning about importlib.abc.Traversable.

Closes #40037

See merge request !81
parents f02dde27 4bfcd7c6
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