]> granicus.if.org Git - python/commitdiff
MERGE DS_RPC_BRANCH into MAIN
authorKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 00:55:21 +0000 (00:55 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 00:55:21 +0000 (00:55 +0000)
CallTips
    track Py Idle loewis: Use ascii_letters to avoid UnicodeErrors 06Aug

Lib/idlelib/CallTips.py

index b1f100f22233042ff76a61e7aa253c0fadc6ee9a..82890cbd88b76f7b51ffe768cea8e3740d0311a7 100644 (file)
@@ -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