[Python-checkins] python/dist/src/Tools/idle CallTips.py,1.9,1.10

loewis@users.sourceforge.net loewis@users.sourceforge.net
Mon, 05 Aug 2002 07:53:54 -0700


Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv17315

Modified Files:
	CallTips.py 
Log Message:
Use ascii_letters to avoid UnicodeErrors.


Index: CallTips.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/CallTips.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** CallTips.py	16 Sep 2001 02:19:49 -0000	1.9
--- CallTips.py	5 Aug 2002 14:53:52 -0000	1.10
***************
*** 77,81 ****
  
      def get_object_at_cursor(self,
!                              wordchars="._" + string.uppercase + string.lowercase + string.digits):
          # XXX - This needs to be moved to a better place
          # so the "." attribute lookup code can also use it.
--- 77,84 ----
  
      def get_object_at_cursor(self,
!                              wordchars="._" + string.ascii_letters + string.digits):
!         # Usage of ascii_letters is necessary to avoid UnicodeErrors
!         # if chars contains non-ASCII.
!         
          # XXX - This needs to be moved to a better place
          # so the "." attribute lookup code can also use it.