Skip to content

Conversation

@aeros
Copy link
Contributor

@aeros aeros commented Apr 29, 2020

Backport for GH-19777, but it removes the Misc/NEWS entry since the typo is not a SyntaxError in versions prior to 3.9.

https://bugs.python.org/issue40431

hroncok and others added 3 commits April 28, 2020 22:21
***   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>
***   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>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@aeros aeros merged commit cc011b5 into python:3.8 Apr 29, 2020
@bedevere-bot
Copy link

@aeros: Please replace # with GH- in the commit message next time. Thanks!

@aeros
Copy link
Contributor Author

aeros commented Apr 29, 2020

Please replace # with GH- in the commit message next time. Thanks!

I've been forgetting it less often now, but I'm still getting the hang of it. I couldn't use automerge for this PR since I had to clean up the commit message.

@miss-islington
Copy link
Contributor

Thanks @aeros for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 29, 2020
…onGH-19784)

[3.8] bpo-40431: Fix syntax typo in turtledemo (pythonGH-19777)

* Addresses a syntax typo that mistakenly used a undefined string prefix due to a missing space.

(cherry picked from commit 49f70db)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
(cherry picked from commit cc011b5)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
@bedevere-bot
Copy link

GH-19789 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Apr 29, 2020
[3.8] bpo-40431: Fix syntax typo in turtledemo (GH-19777)

* Addresses a syntax typo that mistakenly used a undefined string prefix due to a missing space.

(cherry picked from commit 49f70db)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
(cherry picked from commit cc011b5)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants