File tree 4 files changed +7
-2
lines changed
4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ Changes in the Python API
228
228
now raises :exc: `ValueError ` for out-of-range values, rather than
229
229
returning :const: `None `. See :issue: `20059 `.
230
230
231
+ * The :mod: `imp ` module now raises a :exc: `DeprecationWarning ` instead of
232
+ :exc: `PendingDeprecationWarning `.
233
+
231
234
232
235
Changes in the C API
233
236
--------------------
Original file line number Diff line number Diff line change 30
30
31
31
warnings .warn ("the imp module is deprecated in favour of importlib; "
32
32
"see the module's documentation for alternative uses" ,
33
- PendingDeprecationWarning , stacklevel = 2 )
33
+ DeprecationWarning , stacklevel = 2 )
34
34
35
35
# DEPRECATED
36
36
SEARCH_ERROR = 0
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def _iter_file_finder_modules(importer, prefix=''):
180
180
def _import_imp ():
181
181
global imp
182
182
with warnings .catch_warnings ():
183
- warnings .simplefilter ('ignore' , PendingDeprecationWarning )
183
+ warnings .simplefilter ('ignore' , DeprecationWarning )
184
184
imp = importlib .import_module ('imp' )
185
185
186
186
class ImpImporter :
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ Core and Builtins
63
63
Library
64
64
-------
65
65
66
+ - Move the imp module from a PendingDeprecationWarning to DeprecationWarning.
67
+
66
68
- Issue #25407: Remove mentions of the formatter module being removed in
67
69
Python 3.6.
68
70
You can’t perform that action at this time.
0 commit comments