Kaydet (Commit) f2b55fb5 authored tarafından Brett Cannon's avatar Brett Cannon

Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode.

üst e8662063
......@@ -14,7 +14,11 @@ def writes_bytecode(fxn):
if sys.dont_write_bytecode:
return lambda *args, **kwargs: None
else:
return fxn
def wrapper(*args, **kwargs):
to_return = fxn(*args, **kwargs)
sys.dont_write_bytecode = False
return to_return
return wrapper
def bytecode_path(source_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment