summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/CallTips.py')
-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