From: Frost Ming Date: Mon, 3 Nov 2025 02:47:18 +0000 (+0800) Subject: Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=121c219e302365e63eef0aef81b94a3de7a37fec;p=thirdparty%2FPython%2Fcpython.git Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948) --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 4ee12d17a611..fdc74198582e 100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -3603,7 +3603,6 @@ def main(): invalid_args = list(itertools.takewhile(lambda a: a.startswith('-'), args)) if invalid_args: parser.error(f"unrecognized arguments: {' '.join(invalid_args)}") - sys.exit(2) if opts.module: file = opts.module