[Python-checkins] (no subject)

Miro Hrončok webhook-mailer at python.org
Tue Apr 28 20:00:12 EDT 2020




To: python-checkins at python.org
Subject: bpo-40431: Fix syntax typo in turtledemo (GH-19777)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/49f70db83e2c62ad06805927f53f6c3e8f4b=
798e
commit: 49f70db83e2c62ad06805927f53f6c3e8f4b798e
branch: master
author: Miro Hron=C4=8Dok <miro at hroncok.cz>
committer: GitHub <noreply at github.com>
date: 2020-04-29T02:00:07+02:00
summary:

bpo-40431: Fix syntax typo in turtledemo (GH-19777)

***   File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275
        bg=3D"#d00" if clear =3D=3D NORMAL else"#fca")
                                        ^
    SyntaxError: invalid string prefix

files:
A Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst
M Lib/turtledemo/__main__.py

diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py
index 17fe9a75e1c5e..12be5098dad27 100755
--- a/Lib/turtledemo/__main__.py
+++ b/Lib/turtledemo/__main__.py
@@ -272,7 +272,7 @@ def configGUI(self, start, stop, clear, txt=3D"", color=
=3D"blue"):
         self.stop_btn.config(state=3Dstop,
                              bg=3D"#d00" if stop =3D=3D NORMAL else "#fca")
         self.clear_btn.config(state=3Dclear,
-                              bg=3D"#d00" if clear =3D=3D NORMAL else"#fca")
+                              bg=3D"#d00" if clear =3D=3D NORMAL else "#fca")
         self.output_lbl.config(text=3Dtxt, fg=3Dcolor)
=20
     def makeLoadDemoMenu(self, master):
diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ=
0.rst b/Misc/NEWS.d/next/Tools-Demos/2020-04-29-01-32-17.bpo-40431.B_aEZ0.rst
new file mode 100644
index 0000000000000..abef046326fcb
--- /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``.



More information about the Python-checkins mailing list