Skip to content

Commit 4e4aef2

Browse files
committed
Remove docs pertinent to Python 3.6 and earlier.
1 parent 3300fc2 commit 4e4aef2

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

docs/using.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,6 @@ returned is a context manager for use in a ``with``-statement::
140140

141141
Use all the standard :py:mod:`contextlib` APIs to manage this context manager.
142142

143-
.. attention::
144-
145-
There is an odd interaction with Python 3.4, 3.5, and 3.6 regarding adding
146-
zip or wheel file paths to ``sys.path``. Due to limitations in `zipimport
147-
<https://docs.python.org/3/library/zipimport.html>`_, which can't be
148-
changed without breaking backward compatibility, you **must** use an
149-
absolute path to the zip/wheel file. If you use a relative path, you will
150-
not be able to find resources inside these zip files. E.g.:
151-
152-
**No**::
153-
154-
sys.path.append('relative/path/to/foo.whl')
155-
files('foo') # This will fail!
156-
157-
**Yes**::
158-
159-
sys.path.append(os.path.abspath('relative/path/to/foo.whl'))
160-
files('foo')
161-
162-
Both relative and absolute paths work for Python 3.7 and newer.
163-
164143

165144
Migrating from Legacy
166145
=====================

0 commit comments

Comments
 (0)