Skip to content

Commit 6a588e8

Browse files
committed
Just skip pyc writing
1 parent fcca3f9 commit 6a588e8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,6 @@ def get_code(self, fullname):
826826
bytecode_path = None
827827
else:
828828
try:
829-
# DO NOT MERGE - just testing unconditionally skipping this path
830-
raise OSError()
831829
st = self.path_stats(source_path)
832830
except OSError:
833831
pass
@@ -889,8 +887,6 @@ def get_code(self, fullname):
889887
data = _code_to_timestamp_pyc(code_object, source_mtime,
890888
len(source_bytes))
891889
try:
892-
# DO NOT MERGE - just testing unconditionally skipping this path
893-
raise NotImplementedError()
894890
self._cache_bytecode(source_path, bytecode_path, data)
895891
except NotImplementedError:
896892
pass
@@ -951,6 +947,8 @@ def _cache_bytecode(self, source_path, bytecode_path, data):
951947

952948
def set_data(self, path, data, *, _mode=0o666):
953949
"""Write bytes data to a file."""
950+
# DO NOT MERGE - just testing unconditionally skipping this path
951+
return
954952
parent, filename = _path_split(path)
955953
path_parts = []
956954
# Figure out what directories are missing.

0 commit comments

Comments
 (0)