Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89df7b4

Browse files
committed
Issue #17177: Clarify some deprecations
1 parent 5e946ba commit 89df7b4

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Doc/library/imp.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ This module provides an interface to the mechanisms used to implement the
103103
using a :keyword:`try` ... :keyword:`finally` statement.
104104

105105
.. deprecated:: 3.3
106-
Unneeded as loaders should be used to load modules and
107-
:func:`find_module` is deprecated.
106+
If previously used in conjunction with :func:`imp.find_module` then
107+
call ``load_module()`` on the returned loader. If you wish to load a
108+
module from a specific file, then use one of the file-based loaders found
109+
in :mod:`importlib.machinery`.
108110

109111

110112
.. function:: new_module(name)
@@ -233,7 +235,7 @@ file paths.
233235
magic number, as returned by :func:`get_magic`.
234236

235237
.. deprecated:: 3.4
236-
You may use :attr:`sys.implementation.cache_tag` directly starting
238+
Use :attr:`sys.implementation.cache_tag` directly starting
237239
in Python 3.3.
238240

239241

@@ -261,6 +263,8 @@ that circular imports work without any deadlocks.
261263
the most part. A global import lock is kept for some critical tasks,
262264
such as initializing the per-module locks.
263265

266+
.. deprecated:: 3.4
267+
264268

265269
.. function:: acquire_lock()
266270

@@ -279,6 +283,8 @@ that circular imports work without any deadlocks.
279283
the most part. A global import lock is kept for some critical tasks,
280284
such as initializing the per-module locks.
281285

286+
.. deprecated:: 3.4
287+
282288

283289
.. function:: release_lock()
284290

@@ -290,6 +296,8 @@ that circular imports work without any deadlocks.
290296
the most part. A global import lock is kept for some critical tasks,
291297
such as initializing the per-module locks.
292298

299+
.. deprecated:: 3.4
300+
293301

294302
The following constants with integer values, defined in this module, are used
295303
to indicate the search result of :func:`find_module`.

0 commit comments

Comments
 (0)