From: Guido van Rossum Date: Fri, 12 Jul 2002 13:12:44 +0000 (+0000) Subject: (Backport.) X-Git-Tag: v2.2.2b1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb1d38ec99b94a1ea644b03d02ec5a3f4cee373;p=thirdparty%2FPython%2Fcpython.git (Backport.) Fix SF bug 579701 (Fernando Pérez); an input line consisting of one or more spaces only crashed pdb. --- 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]):