]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix syntax error on Asyncio example in doc (GH-9387) (GH-9388)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Sep 2018 06:27:27 +0000 (23:27 -0700)
committerYury Selivanov <yury@magic.io>
Tue, 18 Sep 2018 06:27:27 +0000 (02:27 -0400)
The `gather` method requires to close the parenthesis, but it is being closed twice.
(cherry picked from commit 9c53fa6ad9cd23fb03867b4a1f74264c426c1772)

Co-authored-by: Miguel Ángel García <magmax@users.noreply.github.com>
Doc/library/asyncio-task.rst

index 9ca0dcd7f57ceb1cfb9591205ee042aad4332632..2753998745efa48abcfbbd0b33332496993ca92e 100644 (file)
@@ -232,7 +232,7 @@ Running Tasks Concurrently
               factorial("A", 2),
               factorial("B", 3),
               factorial("C", 4),
-          ))
+          )
 
       asyncio.run(main())