]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19339)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Apr 2020 17:13:58 +0000 (10:13 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2020 17:13:58 +0000 (22:43 +0530)
(cherry picked from commit bd6a4c3d72828d3d0e13922e165998539d24f8bc)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/library/zipapp.rst

index 728315251e082439bcd896069d9029d25cd53205..fb40a2b3e964e4d52124d64134451a023dc4465c 100644 (file)
@@ -198,7 +198,7 @@ Pack up a directory into an archive, and run it.
 The same can be done using the :func:`create_archive` function::
 
    >>> import zipapp
-   >>> zipapp.create_archive('myapp.pyz', 'myapp')
+   >>> zipapp.create_archive('myapp', 'myapp.pyz')
 
 To make the application directly executable on POSIX, specify an interpreter
 to use.