Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64e4f7f

Browse files
committed
Strip trailing whitespace
1 parent cc4dfc1 commit 64e4f7f

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Doc/library/zipapp.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The module defines two convenience functions:
103103

104104
Create an application archive from *source*. The source can be any
105105
of the following:
106-
106+
107107
* The name of a directory, in which case a new application archive
108108
will be created from the content of that directory.
109109
* The name of an existing application archive file, in which case the file is
@@ -113,26 +113,26 @@ The module defines two convenience functions:
113113
* A file object open for reading in bytes mode. The content of the
114114
file should be an application archive, and the file object is
115115
assumed to be positioned at the start of the archive.
116-
116+
117117
The *target* argument determines where the resulting archive will be
118118
written:
119-
119+
120120
* If it is the name of a file, the archive will be written to that
121121
file.
122122
* If it is an open file object, the archive will be written to that
123123
file object, which must be open for writing in bytes mode.
124124
* If the target is omitted (or None), the source must be a directory
125125
and the target will be a file with the same name as the source, with
126126
a ``.pyz`` extension added.
127-
127+
128128
The *interpreter* argument specifies the name of the Python
129129
interpreter with which the archive will be executed. It is written as
130130
a "shebang" line at the start of the archive. On POSIX, this will be
131131
interpreted by the OS, and on Windows it will be handled by the Python
132132
launcher. Omitting the *interpreter* results in no shebang line being
133133
written. If an interpreter is specified, and the target is a
134134
filename, the executable bit of the target file will be set.
135-
135+
136136
The *main* argument specifies the name of a callable which will be
137137
used as the main program for the archive. It can only be specified if
138138
the source is a directory, and the source does not already contain a
@@ -142,10 +142,10 @@ The module defines two convenience functions:
142142
is an error to omit *main* if the source is a directory and does not
143143
contain a ``__main__.py`` file, as otherwise the resulting archive
144144
would not be executable.
145-
145+
146146
If a file object is specified for *source* or *target*, it is the
147147
caller's responsibility to close it after calling create_archive.
148-
148+
149149
When copying an existing archive, file objects supplied only need
150150
``read`` and ``readline``, or ``write`` methods. When creating an
151151
archive from a directory, if the target is a file object it will be
@@ -255,3 +255,4 @@ on POSIX systems, to allow it to be executed directly.
255255
There is no requirement that the tools in this module are used to create
256256
application archives - the module is a convenience, but archives in the above
257257
format created by any means are acceptable to Python.
258+

0 commit comments

Comments
 (0)