]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129020: Remove ambiguous sentence from `tokenize.untokenize` docs (#129021)
authorTomas R. <tomas.roun8@gmail.com>
Mon, 20 Jan 2025 00:05:22 +0000 (01:05 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 00:05:22 +0000 (00:05 +0000)
Doc/library/tokenize.rst

index f719319a302a238313c015e096bce7a4bbb92b5c..b80917eae66f8b91a83591a81a45aeba2d0fba57 100644 (file)
@@ -91,11 +91,10 @@ write back the modified script.
     sequences with at least two elements, the token type and the token string.
     Any additional sequence elements are ignored.
 
-    The reconstructed script is returned as a single string.  The result is
-    guaranteed to tokenize back to match the input so that the conversion is
-    lossless and round-trips are assured.  The guarantee applies only to the
-    token type and token string as the spacing between tokens (column
-    positions) may change.
+    The result is guaranteed to tokenize back to match the input so that the
+    conversion is lossless and round-trips are assured.  The guarantee applies
+    only to the token type and token string as the spacing between tokens
+    (column positions) may change.
 
     It returns bytes, encoded using the :data:`~token.ENCODING` token, which
     is the first token sequence output by :func:`.tokenize`. If there is no