[Python-checkins] python/dist/src/Lib pdb.py,1.51,1.51.24.1

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 12 Jul 2002 06:12:46 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv27387

Modified Files:
      Tag: release22-maint
	pdb.py 
Log Message:
(Backport.)

Fix SF bug 579701 (Fernando Pérez); an input line consisting of one or
more spaces only crashed pdb.


Index: pdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pdb.py,v
retrieving revision 1.51
retrieving revision 1.51.24.1
diff -C2 -d -r1.51 -r1.51.24.1
*** pdb.py	9 Feb 2001 23:28:07 -0000	1.51
--- pdb.py	12 Jul 2002 13:12:44 -0000	1.51.24.1
***************
*** 152,156 ****
      def precmd(self, line):
          """Handle alias expansion and ';;' separator."""
!         if not line:
              return line
          args = line.split()
--- 152,156 ----
      def precmd(self, line):
          """Handle alias expansion and ';;' separator."""
!         if not line.strip():
              return line
          args = line.split()