Skip to content

tokenize.NL always exists, tabnanny thinks otherwise #97639

Closed
@sobolevn

Description

@sobolevn

While checking coverage of some module, I found that these condition is never True: https://github.com/python/cpython/blame/4652093e1b816b78e9a585d671a807ce66427417/Lib/tabnanny.py#L26-L27

Which is correct, because NL token is always there.
This code is pretty old, I think it is safe to be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions