@@ -127,14 +127,14 @@ def get_data(self, path: str) -> bytes:
127
127
path_no_ext , ext = os .path .splitext (path )
128
128
sep = os .path .extsep
129
129
if ext == sep + "pyc" :
130
- bytecode_imports_allowed = all (
130
+ bytecode_caching_allowed = all (
131
131
tracer .bytecode_caching_allowed for tracer in self ._tracers
132
132
)
133
133
parts = path .split (sep )
134
- if bytecode_imports_allowed and len (parts ) < 3 :
134
+ if bytecode_caching_allowed and len (parts ) < 3 :
135
135
return super ().get_data (path )
136
136
source_path = pyccolo_source_from_cache (path )
137
- if bytecode_imports_allowed and self .make_cache_signature (source_path ) in (
137
+ if bytecode_caching_allowed and self .make_cache_signature (source_path ) in (
138
138
parts [- 3 ],
139
139
"pyccolo" ,
140
140
):
@@ -230,12 +230,12 @@ def exec_module(self, module: ModuleType) -> None:
230
230
should_reenable_saved_state = []
231
231
enforce_pickled_bookkeeping = False
232
232
tracer = None
233
- bytecode_imports_allowed = True
233
+ bytecode_caching_allowed = True
234
234
for tracer in reversed (self ._tracers ):
235
235
should_disable = False
236
236
if tracer ._should_instrument_file_impl (source_path ):
237
- bytecode_imports_allowed = (
238
- tracer .bytecode_caching_allowed and bytecode_imports_allowed
237
+ bytecode_caching_allowed = (
238
+ tracer .bytecode_caching_allowed and bytecode_caching_allowed
239
239
)
240
240
enforce_pickled_bookkeeping = (
241
241
enforce_pickled_bookkeeping or tracer .requires_ast_bookkeeping
@@ -246,7 +246,7 @@ def exec_module(self, module: ModuleType) -> None:
246
246
if should_disable :
247
247
tracer ._disable_tracing ()
248
248
enforce_pickled_bookkeeping = (
249
- enforce_pickled_bookkeeping and bytecode_imports_allowed
249
+ enforce_pickled_bookkeeping and bytecode_caching_allowed
250
250
)
251
251
pickle_path = None
252
252
if enforce_pickled_bookkeeping :
0 commit comments