diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-25 11:05:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 11:05:23 (GMT) |
commit | 4aec9a8be2f2574f249008eb8be76c070fea37eb (patch) | |
tree | 109e24fae63d38d6e566c791d73df2c3609d4d4d /Doc/library/zipapp.rst | |
parent | 3c749fc867f69deac75f866d5c1ba0f60e54c1fa (diff) | |
download | cpython-4aec9a8be2f2574f249008eb8be76c070fea37eb.zip cpython-4aec9a8be2f2574f249008eb8be76c070fea37eb.tar.gz cpython-4aec9a8be2f2574f249008eb8be76c070fea37eb.tar.bz2 |
bpo-29901: Improve support of path-like objects in zipapp. (#815)
Now general path-like objects are supported, not just pathlib.Path.
Diffstat (limited to 'Doc/library/zipapp.rst')
-rw-r--r-- | Doc/library/zipapp.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/zipapp.rst b/Doc/library/zipapp.rst index 9dee9a5..71753cb 100644 --- a/Doc/library/zipapp.rst +++ b/Doc/library/zipapp.rst @@ -103,11 +103,11 @@ The module defines two convenience functions: Create an application archive from *source*. The source can be any of the following: - * The name of a directory, or a :class:`pathlib.Path` object referring + * The name of a directory, or a :term:`path-like object` referring to a directory, in which case a new application archive will be created from the content of that directory. - * The name of an existing application archive file, or a :class:`pathlib.Path` - object referring to such a file, in which case the file is copied to + * The name of an existing application archive file, or a :term:`path-like object` + referring to such a file, in which case the file is copied to the target (modifying it to reflect the value given for the *interpreter* argument). The file name should include the ``.pyz`` extension, if required. * A file object open for reading in bytes mode. The content of the @@ -117,7 +117,7 @@ The module defines two convenience functions: The *target* argument determines where the resulting archive will be written: - * If it is the name of a file, or a :class:`pathlb.Path` object, + * If it is the name of a file, or a :term:`path-like object`, the archive will be written to that file. * If it is an open file object, the archive will be written to that file object, which must be open for writing in bytes mode. |