https://github.com/python/cpython/commit/121c219e302365e63eef0aef81b94a3de7a37fec
commit: 121c219e302365e63eef0aef81b94a3de7a37fec
branch: main
author: Frost Ming <[email protected]>
committer: gaogaotiantian <[email protected]>
date: 2025-11-02T18:47:18-08:00
summary:

Remove redundant `sys.exit(2)` call in `pdb` CLI (#139948)

files:
M Lib/pdb.py

diff --git a/Lib/pdb.py b/Lib/pdb.py
index 4ee12d17a611e6..fdc74198582eec 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to