Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b27972

Browse files
authored
gh-88496: Fix IDLE test hang on macOS (#104025)
Replace widget.update() with widget.update_idletasks in two places.
1 parent69bc86c commit4b27972

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎Lib/idlelib/colorizer.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def recolorize_main(self):
310310
# crumb telling the next invocation to resume here
311311
# in case update tells us to leave.
312312
self.tag_add("TODO",next)
313-
self.update()
313+
self.update_idletasks()
314314
ifself.stop_colorizing:
315315
ifDEBUG:print("colorizing stopped")
316316
return

‎Lib/idlelib/outwin.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def write(self, s, tags=(), mark="insert"):
112112
assertisinstance(s,str)
113113
self.text.insert(mark,s,tags)
114114
self.text.see(mark)
115-
self.text.update()
115+
self.text.update_idletasks()
116116
returnlen(s)
117117

118118
defwritelines(self,lines):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix IDLE test hang on macOS.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp