This commit is contained in:
Eddy Mulyono 2025-12-08 06:11:25 +02:00 committed by GitHub
commit a2eaf92a22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -327,6 +327,7 @@ def untokenize(iterable):
"""Transform tokens back into Python source code. """Transform tokens back into Python source code.
It returns a bytes object, encoded using the ENCODING It returns a bytes object, encoded using the ENCODING
token, which is the first token sequence output by tokenize. token, which is the first token sequence output by tokenize.
If there is no encoding token in the input, it returns a str instead.
Each element returned by the iterable must be a token sequence Each element returned by the iterable must be a token sequence
with at least two elements, a token number and token value. If with at least two elements, a token number and token value. If