[Python-checkins] python/dist/src/Tools/idle CallTips.py,1.9,1.9.12.1
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Mon, 23 Sep 2002 07:23:17 -0700
Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv1864
Modified Files:
Tag: release22-maint
CallTips.py
Log Message:
Backport patch: 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.9.12.1
diff -C2 -d -r1.9 -r1.9.12.1
*** CallTips.py 16 Sep 2001 02:19:49 -0000 1.9
--- CallTips.py 23 Sep 2002 14:23:15 -0000 1.9.12.1
***************
*** 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.