bpo-40431: Fix syntax typo in turtledemo (GH-19777)
*** File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275 bg="#d00" if clear == NORMAL else"#fca") ^ SyntaxError: invalid string prefix
This commit is contained in:
parent
8852ad4208
commit
49f70db83e
|
@ -272,7 +272,7 @@ class DemoWindow(object):
|
||||||
self.stop_btn.config(state=stop,
|
self.stop_btn.config(state=stop,
|
||||||
bg="#d00" if stop == NORMAL else "#fca")
|
bg="#d00" if stop == NORMAL else "#fca")
|
||||||
self.clear_btn.config(state=clear,
|
self.clear_btn.config(state=clear,
|
||||||
bg="#d00" if clear == NORMAL else"#fca")
|
bg="#d00" if clear == NORMAL else "#fca")
|
||||||
self.output_lbl.config(text=txt, fg=color)
|
self.output_lbl.config(text=txt, fg=color)
|
||||||
|
|
||||||
def makeLoadDemoMenu(self, master):
|
def makeLoadDemoMenu(self, master):
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``.
|
Loading…
Reference in New Issue