summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-09-14 00:55:21 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-09-14 00:55:21 (GMT)
commit92cfaf68c75bd178093e6cedce7a3b5e315f8c9a (patch)
tree49c1638c07651ccf4a916405f4a3481fa862beb1 /Lib/idlelib
parent0c9b61738bd1b674594956a8e4e511c3f8f5501c (diff)
downloadcpython-92cfaf68c75bd178093e6cedce7a3b5e315f8c9a.zip
cpython-92cfaf68c75bd178093e6cedce7a3b5e315f8c9a.tar.gz
cpython-92cfaf68c75bd178093e6cedce7a3b5e315f8c9a.tar.bz2
MERGE DS_RPC_BRANCH into MAIN
CallTips track Py Idle loewis: Use ascii_letters to avoid UnicodeErrors 06Aug
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/CallTips.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index b1f100f..82890cb 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