mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
MERGE DS_RPC_BRANCH into MAIN
CallTips track Py Idle loewis: Use ascii_letters to avoid UnicodeErrors 06Aug
This commit is contained in:
parent
0c9b61738b
commit
92cfaf68c7
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ class CallTips:
|
||||||
return "" #so the event is handled normally.
|
return "" #so the event is handled normally.
|
||||||
|
|
||||||
def get_object_at_cursor(self,
|
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
|
# XXX - This needs to be moved to a better place
|
||||||
# so the "." attribute lookup code can also use it.
|
# so the "." attribute lookup code can also use it.
|
||||||
text = self.text
|
text = self.text
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue