[Python-checkins] python/dist/src/Lib/idlelib CallTips.py,1.9,1.10

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sun, 13 Jul 2003 03:25:16 -0700


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1:/tmp/cvs-serv4397

Modified Files:
	CallTips.py 
Log Message:
SF bug #769142:  CallTip trimming may loop forever.

Needs to be backported to both IDLE and IDLEFORK.



Index: CallTips.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/CallTips.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** CallTips.py	31 Dec 2002 15:59:14 -0000	1.9
--- CallTips.py	13 Jul 2003 10:25:14 -0000	1.10
***************
*** 163,170 ****
                  pass
          # See if we can use the docstring
!         doc = getattr(ob, "__doc__", "")
          if doc:
-             while doc[:1] in " \t\n":
-                 doc = doc[1:]
              pos = doc.find("\n")
              if pos < 0 or pos > 70:
--- 163,168 ----
                  pass
          # See if we can use the docstring
!         doc = getattr(ob, "__doc__", "").lstrip()
          if doc:
              pos = doc.find("\n")
              if pos < 0 or pos > 70: