Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commit51e8898
committed
Improve some deprecations in the importlib
Add the python version since the functionality is deprecated,and raise a couple of deprecation warnings in a few places.Theses functions are marked as deprecated in the documentation, butespecially in existing codebase, programmers tends to not re-checkwhether functions are deprecated. So trigger the warning when possible.It's also more probable that a developer will drop deprecatedfunctionality if we immediately give them information aboutreplacement API, and not have them to go find it in the documentation.Include deprecation information in DocString as well as many tools pulldocumentation from there and not from docs.python.org.Add test making sure `find_loader()` and `find_module()` Both emit adeprecation warning.1 parentf15fa87 commit51e8898
File tree
3 files changed
+27
-7
lines changed- Lib
- importlib
- test/test_importlib
3 files changed
+27
-7
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
| 83 | + | |
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
|
Lines changed: 19 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
| |||
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| 38 | + | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
| |||
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 |
| |
64 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 |
| |
66 | 74 |
| |
67 | 75 |
| |
| |||
94 | 102 |
| |
95 | 103 |
| |
96 | 104 |
| |
97 |
| - | |
98 |
| - | |
99 |
| - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
100 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
101 | 114 |
| |
102 | 115 |
| |
103 | 116 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 |
| |
167 | 170 |
| |
168 | 171 |
| |
| |||
189 | 192 |
| |
190 | 193 |
| |
191 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 |
| |
193 | 199 |
| |
194 | 200 |
| |
|
0 commit comments
Comments
(0)