diff options
author | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:26:56 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:27:49 (GMT) |
commit | 9f74c6cf7d0fd6188194e7bba8f059843b9c3c89 (patch) | |
tree | 428d7473b21eb3eb0d728eab38c90490e455ec8b /Doc/library/zipimport.rst | |
parent | 8b945148e3f98b9c6c51bfaa830e779979713b82 (diff) | |
download | cpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.zip cpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.tar.gz cpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.tar.bz2 |
Issue #8890: Stop advertising an insecure use of /tmp in docs
Diffstat (limited to 'Doc/library/zipimport.rst')
-rw-r--r-- | Doc/library/zipimport.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst index 4f17092..60b2bd1 100644 --- a/Doc/library/zipimport.rst +++ b/Doc/library/zipimport.rst @@ -16,7 +16,7 @@ Typically, :data:`sys.path` is a list of directory names as strings. This modul also allows an item of :data:`sys.path` to be a string naming a ZIP file archive. The ZIP archive can contain a subdirectory structure to support package imports, and a path within the archive can be specified to only import from a -subdirectory. For example, the path :file:`/tmp/example.zip/lib/` would only +subdirectory. For example, the path :file:`example.zip/lib/` would only import from the :file:`lib/` subdirectory within the archive. Any files may be present in the ZIP archive, but only files :file:`.py` and @@ -144,8 +144,8 @@ Examples Here is an example that imports a module from a ZIP archive - note that the :mod:`zipimport` module is not explicitly used. :: - $ unzip -l /tmp/example.zip - Archive: /tmp/example.zip + $ unzip -l example.zip + Archive: example.zip Length Date Time Name -------- ---- ---- ---- 8467 11-26-02 22:30 jwzthreading.py @@ -154,8 +154,8 @@ Here is an example that imports a module from a ZIP archive - note that the $ ./python Python 2.3 (#1, Aug 1 2003, 19:54:32) >>> import sys - >>> sys.path.insert(0, '/tmp/example.zip') # Add .zip file to front of path + >>> sys.path.insert(0, 'example.zip') # Add .zip file to front of path >>> import jwzthreading >>> jwzthreading.__file__ - '/tmp/example.zip/jwzthreading.py' + 'example.zip/jwzthreading.py' |