Skip to content

Commit 49f70db

Browse files
authored
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
1 parent 8852ad4 commit 49f70db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/turtledemo/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def configGUI(self, start, stop, clear, txt="", color="blue"):
272272
self.stop_btn.config(state=stop,
273273
bg="#d00" if stop == NORMAL else "#fca")
274274
self.clear_btn.config(state=clear,
275-
bg="#d00" if clear == NORMAL else"#fca")
275+
bg="#d00" if clear == NORMAL else "#fca")
276276
self.output_lbl.config(text=txt, fg=color)
277277

278278
def makeLoadDemoMenu(self, master):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``.

0 commit comments

Comments
 (0)