Skip to content

Commit 72d70c9

Browse files
committed
Exclude PYPY_OPEN_BUG handling as discussed in !75.
1 parent fbe0c51 commit 72d70c9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import sys
2-
import os
32

43

54
# Merge the body of this class into _bootstrap_external:
@@ -38,10 +37,8 @@ def _switch_path(path):
3837
from contextlib import suppress
3938
import zipfile
4039
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)
40+
with suppress(Exception):
41+
return zipfile.Path(path)
4542
return Path(path)
4643

4744
@classmethod

Lib/importlib/metadata/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import io
2-
import os
32
import re
43
import abc
54
import csv

0 commit comments

Comments
 (0)