-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tokenize.py emits spurious NEWLINE if file ends on a comment without a newline #105435
Labels
type-bug
An unexpected behavior, bug, or error
Comments
This looks similar to #105259 — (Cc. @pablogsal / @lysnikolaou) EDIT: I see you're using 3.12.0b2 already. Apologies. |
CC: @mgmacias95 |
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Jun 7, 2023
… without a newline
pablogsal
added a commit
that referenced
this issue
Jun 7, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 7, 2023
… without a newline (pythonGH-105442) (cherry picked from commit 7279fb6) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal
pushed a commit
that referenced
this issue
Jun 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
This issue, which was reported in https://bugs.python.org/issue35107#msg328884 for much older Python versions in the case where a file ended on a comment, has resurfaced for Python 3.12.
Note that the problem also arises in the following example:
Linked PRs
The text was updated successfully, but these errors were encountered: