Skip to content

Commit 1e6bc3a

Browse files
committed
gh-60427: Lib/tokenize.py (untokenize): Update docstring about returning str
1 parent 1a07a01 commit 1e6bc3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/tokenize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def untokenize(iterable):
327327
"""Transform tokens back into Python source code.
328328
It returns a bytes object, encoded using the ENCODING
329329
token, which is the first token sequence output by tokenize.
330+
If there is no encoding token in the input, it returns a str instead.
330331
331332
Each element returned by the iterable must be a token sequence
332333
with at least two elements, a token number and token value. If

0 commit comments

Comments
 (0)