aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/pdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index f4d19386703..88ea900e63f 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -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