mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-90095: Ignore empty lines and comments in .pdbrc
(#116834)
This commit is contained in:
parent
8fc8fbb43a
commit
a50cf6c3d7
4 changed files with 26 additions and 2 deletions
|
@ -364,7 +364,10 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
|||
)
|
||||
|
||||
if self.rcLines:
|
||||
self.cmdqueue = self.rcLines
|
||||
self.cmdqueue = [
|
||||
line for line in self.rcLines
|
||||
if line.strip() and not line.strip().startswith("#")
|
||||
]
|
||||
self.rcLines = []
|
||||
|
||||
# Override Bdb methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue