From 68467a505842315d76158fc374ad9aa4a585f783 Mon Sep 17 00:00:00 2001 From: AinL Date: Fri, 24 Jan 2025 07:34:16 +0000 Subject: [PATCH] fmt --- python/sglang/utils.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/python/sglang/utils.py b/python/sglang/utils.py index 9b5ca15dde1..98e0f3f4f8d 100644 --- a/python/sglang/utils.py +++ b/python/sglang/utils.py @@ -363,23 +363,3 @@ def terminate_process(process): def print_highlight(html_content: str): html_content = str(html_content).replace("\n", "
") display(HTML(f"{html_content}")) - - -import pdb # type: ignore -import sys - - -class ForkedPdb(pdb.Pdb): - """ - PDB Subclass for debugging multi-processed code - Suggested in: https://stackoverflow.com/questions/4716533/how-to-attach-debugger-to-a-python-subproccess - """ - - def interaction(self, *args, **kwargs): - _stdin = sys.stdin - try: - - sys.stdin = open("/dev/stdin") - pdb.Pdb.interaction(self, *args, **kwargs) - finally: - sys.stdin = _stdin