Skip to content

Commit 0b5e2a5

Browse files
authored
gh-133829 Update example to use example.zip example.py and import example
1 parent 72ff028 commit 0b5e2a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/zipimport.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ Here is an example that imports a module from a ZIP archive - note that the
189189
.. code-block:: python
190190
191191
>>> import sys
192-
>>> sys.path.insert(0, 'pip.pyz') # Add .pyz file to front of path
193-
>>> import pip
194-
>>> pip.__file__
195-
'pip.pyz/pip/__main__.py'
192+
>>> sys.path.insert(0, 'example.zip') # Add .zip file to front of path
193+
>>> import example
194+
>>> example.__file__
195+
'example.zip/example/__main__.py'
196196

0 commit comments

Comments
 (0)