Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-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>
  • Loading branch information
hroncok authored and aeros committed Apr 29, 2020
commit 88ca8e7bdd0b1a12ab41dac88fa2d3ba0714a5f6
2 changes: 1 addition & 1 deletion Lib/turtledemo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def configGUI(self, start, stop, clear, txt="", color="blue"):
self.stop_btn.config(state=stop,
bg="#d00" if stop == NORMAL else "#fca")
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)

def makeLoadDemoMenu(self, master):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``.