[Idle-dev] CVS: idle SearchEngine.py,1.2,1.3

Kurt B. Kaiser kbk@users.sourceforge.net
Tue, 17 Sep 2002 20:14:13 -0700


Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv31457

Modified Files:
	SearchEngine.py 
Log Message:
Merge PyIdle changes:
Rev 1.3 doerwalter
(string methods)


Index: SearchEngine.py
===================================================================
RCS file: /cvsroot/idlefork/idle/SearchEngine.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SearchEngine.py	4 Jul 2001 03:15:10 -0000	1.2
--- SearchEngine.py	18 Sep 2002 03:14:11 -0000	1.3
***************
*** 1,3 ****
- import string
  import re
  from Tkinter import *
--- 1,2 ----
***************
*** 176,180 ****
                  wrap = 0
                  pos = text.index("end-1c")
!                 line, col = map(int, string.split(pos, "."))
              chars = text.get("%d.0" % line, "%d.0" % (line+1))
              col = len(chars) - 1
--- 175,179 ----
                  wrap = 0
                  pos = text.index("end-1c")
!                 line, col = map(int, pos.split("."))
              chars = text.get("%d.0" % line, "%d.0" % (line+1))
              col = len(chars) - 1
***************
*** 218,221 ****
  
  def get_line_col(index):
!     line, col = map(int, string.split(index, ".")) # Fails on invalid index
      return line, col
--- 217,220 ----
  
  def get_line_col(index):
!     line, col = map(int, index.split(".")) # Fails on invalid index
      return line, col