Skip to content

Commit c83fa0d

Browse files
committed
Replace sys.stdout.write → print
1 parent 2841734 commit c83fa0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_pathfinder/tests/child_load_nvidia_dynamic_lib_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def child_process_func(libname):
3737
try:
3838
loaded_dl_fresh = load_nvidia_dynamic_lib(libname)
3939
except DynamicLibNotFoundError:
40-
sys.stdout.write("CHILD_LOAD_NVIDIA_DYNAMIC_LIB_HELPER_DYNAMIC_LIB_NOT_FOUND_ERROR:\n")
40+
print("CHILD_LOAD_NVIDIA_DYNAMIC_LIB_HELPER_DYNAMIC_LIB_NOT_FOUND_ERROR:") # noqa: T201
4141
traceback.print_exc(file=sys.stdout)
4242
return
4343
if loaded_dl_fresh.was_already_loaded_from_elsewhere:
@@ -57,4 +57,4 @@ def child_process_func(libname):
5757
raise RuntimeError(f"not os.path.samefile({loaded_dl_no_cache.abs_path=!r}, {loaded_dl_fresh.abs_path=!r})")
5858
validate_abs_path(loaded_dl_no_cache.abs_path)
5959

60-
sys.stdout.write(json.dumps(loaded_dl_fresh.abs_path) + "\n")
60+
print(json.dumps(loaded_dl_fresh.abs_path)) # noqa: T201

0 commit comments

Comments
 (0)