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 fbe0c51 commit 72d70c9Copy full SHA for 72d70c9
Lib/importlib/_bootstrap_external.py
@@ -1,5 +1,4 @@
1
import sys
2
-import os
3
4
5
# Merge the body of this class into _bootstrap_external:
@@ -38,10 +37,8 @@ def _switch_path(path):
38
37
from contextlib import suppress
39
import zipfile
40
from pathlib import Path
41
- PYPY_OPEN_BUG = False
42
- if not PYPY_OPEN_BUG or os.path.isfile(path): # pragma: no branch
43
- with suppress(Exception):
44
- return zipfile.Path(path)
+ with suppress(Exception):
+ return zipfile.Path(path)
45
return Path(path)
46
47
@classmethod
Lib/importlib/metadata/__init__.py
import io
import re
import abc
import csv
0 commit comments