From 88ca8e7bdd0b1a12ab41dac88fa2d3ba0714a5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 29 Apr 2020 02:00:07 +0200 Subject: [PATCH 1/3] [3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *** 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 49f70db83e2c62ad06805927f53f6c3e8f4b798e) Co-authored-by: Miro Hrončok --- Lib/turtledemo/__main__.py | 2 +- .../next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py index 17fe9a75e1c5ea..12be5098dad274 100644 --- a/Lib/turtledemo/__main__.py +++ b/Lib/turtledemo/__main__.py @@ -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): 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 00000000000000..abef046326fcb0 --- /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``. From 800ba74916f1c58a3a6b03d3b8ea66046bd61e82 Mon Sep 17 00:00:00 2001 From: Kyle Stanley Date: Tue, 28 Apr 2020 22:23:21 -0400 Subject: [PATCH 2/3] Remove news entry --- .../next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst 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 deleted file mode 100644 index abef046326fcb0..00000000000000 --- a/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``. From 41e2938e54b3739783630e43416e1437dc0475cc Mon Sep 17 00:00:00 2001 From: Kyle Stanley Date: Tue, 28 Apr 2020 22:23:48 -0400 Subject: [PATCH 3/3] [3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *** 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 49f70db83e2c62ad06805927f53f6c3e8f4b798e) Co-authored-by: Miro Hrončok