From: Kurt B. Kaiser <kbk@shore.net> Date: Sat, 14 Sep 2002 00:55:21 +0000 (+0000) Subject: MERGE DS_RPC_BRANCH into MAIN X-Git-Tag: v2.3c1~4091 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92cfaf68c75bd178093e6cedce7a3b5e315f8c9a;p=python MERGE DS_RPC_BRANCH into MAIN CallTips track Py Idle loewis: Use ascii_letters to avoid UnicodeErrors 06Aug --- diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index b1f100f222..82890cbd88 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -63,7 +63,10 @@ class CallTips: return "" #so the event is handled normally. def get_object_at_cursor(self, - wordchars="._" + string.uppercase + string.lowercase + string.digits): + 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. text = self.text