diff options
author | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:34:15 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:34:44 (GMT) |
commit | 3c75a48c860e81063c8034e9929ad092b43677ef (patch) | |
tree | 8d3346669fa18da2b8db0360e5257d5149da9a93 /Doc/library/zipimport.rst | |
parent | f484efdb60cf97d04eed4f87f838ad27e1ed241f (diff) | |
parent | 9f74c6cf7d0fd6188194e7bba8f059843b9c3c89 (diff) | |
download | cpython-3c75a48c860e81063c8034e9929ad092b43677ef.zip cpython-3c75a48c860e81063c8034e9929ad092b43677ef.tar.gz cpython-3c75a48c860e81063c8034e9929ad092b43677ef.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 b47c35b..dffc8e3 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 @@ -147,8 +147,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 @@ -157,8 +157,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' |