From 9eb1d38ec99b94a1ea644b03d02ec5a3f4cee373 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 12 Jul 2002 13:12:44 +0000 Subject: [PATCH] (Backport.) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix SF bug 579701 (Fernando Pérez); an input line consisting of one or more spaces only crashed pdb. --- Lib/pdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index 1286f122ba0d..7ff994d14b08 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -151,7 +151,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): def precmd(self, line): """Handle alias expansion and ';;' separator.""" - if not line: + if not line.strip(): return line args = line.split() while self.aliases.has_key(args[0]): -- 2.47.3