Skip to content

Commit 88ca8e7

Browse files
hroncokaeros
authored andcommitted
[3.8] bpo-40431: Fix syntax typo in turtledemo (pythonGH-19777)
*** File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275 bg="GH-d00" if clear == NORMAL else"GH-fca") ^ SyntaxError: invalid string prefix (cherry picked from commit 49f70db) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
1 parent 9412f4d commit 88ca8e7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)