[3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325) (#105330)

This commit is contained in:
Miss Islington (bot) 2023-06-05 12:44:20 -07:00 committed by GitHub
parent ab660e9a53
commit 3aa3be4fe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -490,8 +490,7 @@ def main():
else:
filename = "<stdin>"
tokens = _generate_tokens_from_c_tokenizer(
(x.encode('utf-8') for x in iter(sys.stdin.readline, "")
), "utf-8", extra_tokens=True)
sys.stdin.readline, extra_tokens=True)
# Output the tokenization