diff options
author | Miro HronĨok <miro@hroncok.cz> | 2020-04-29 00:00:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 00:00:07 (GMT) |
commit | 49f70db83e2c62ad06805927f53f6c3e8f4b798e (patch) | |
tree | 7777fa38e7a6b3cb68b4f6781ba63fb116900069 | |
parent | 8852ad4208e34825f74e24945edb5bcf055d94fe (diff) | |
download | cpython-49f70db83e2c62ad06805927f53f6c3e8f4b798e.zip cpython-49f70db83e2c62ad06805927f53f6c3e8f4b798e.tar.gz cpython-49f70db83e2c62ad06805927f53f6c3e8f4b798e.tar.bz2 |
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
-rwxr-xr-x | Lib/turtledemo/__main__.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py index 17fe9a7..12be509 100755 --- a/Lib/turtledemo/__main__.py +++ b/Lib/turtledemo/__main__.py @@ -272,7 +272,7 @@ class DemoWindow(object): 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): diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst b/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst new file mode 100644 index 0000000..abef046 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst @@ -0,0 +1 @@ +Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``. |