viz/serve.py cleanups (#12185)

* don't assign unused variable

* *path to
This commit is contained in:
qazal
2025-09-15 13:43:26 +03:00
committed by GitHub
parent b8a74c1569
commit d8855ec266

View File

@@ -295,7 +295,7 @@ class TCPServerWithReuse(socketserver.TCPServer): allow_reuse_address = True
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--kernels', type=pathlib.Path, help='Path to kernels', default=pathlib.Path(temp("rewrites.pkl", append_user=True)))
parser.add_argument('--profile', type=pathlib.Path, help='Path profile', default=pathlib.Path(temp("profile.pkl", append_user=True)))
parser.add_argument('--profile', type=pathlib.Path, help='Path to profile', default=pathlib.Path(temp("profile.pkl", append_user=True)))
args = parser.parse_args()
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
@@ -308,7 +308,7 @@ if __name__ == "__main__":
ctxs = get_metadata(load_pickle(args.kernels))
profile_ret = get_profile(profile:=load_pickle(args.profile))
profile_ret = get_profile(load_pickle(args.profile))
server = TCPServerWithReuse(('', PORT), Handler)
reloader_thread = threading.Thread(target=reloader)