Skip to content

Commit

Permalink
bpo-40431: Fix syntax typo in turtledemo (pythonGH-19777)
Browse files Browse the repository at this point in the history
***   File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275
        bg="#d00" if clear == NORMAL else"#fca")
                                        ^
    SyntaxError: invalid string prefix
  • Loading branch information
hroncok committed Apr 29, 2020
1 parent 8852ad4 commit 49f70db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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``.

0 comments on commit 49f70db

Please sign in to comment.