We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0219ab7 commit 49f20f6Copy full SHA for 49f20f6
1 file changed
Lib/traceback.py
@@ -13,6 +13,7 @@
13
import tokenize
14
import io
15
import importlib.util
16
+import pathlib
17
import _colorize
18
19
from contextlib import suppress
@@ -1905,7 +1906,7 @@ def _find_incompatible_extension_module(module_name):
1905
1906
traversable = importlib.resources.files(parent)
1907
else:
1908
traversable = importlib.resources.readers.MultiplexedPath(
- *filter(os.path.isdir, sys.path)
1909
+ *map(pathlib.Path, filter(os.path.isdir, sys.path))
1910
)
1911
1912
for entry in traversable.iterdir():
0 commit comments