- Notifications
You must be signed in to change notification settings - Fork25.8k
Commit81ea7a4
Replaced deprecated pkg_resources.packaging with packaging module (#113023)
Usage of `from pkg_resources import packaging` leads to a deprecation warning:```DeprecationWarning: pkg_resources is deprecated as an API. Seehttps://setuptools.pypa.io/en/latest/pkg_resources.html```and in strict tests where warnings are errors, this leads to CI breaks, e.g.:pytorch/vision#8092Replacing `pkg_resources.package` with `package` as it is now a pytorch dependency:https://github.com/pytorch/pytorch/blob/fa9045a8725214c05ae4dcec5a855820b861155e/requirements.txt#L19Pull Requestresolved:#113023Approved by:https://github.com/Skylion0071 parent67256d5 commit81ea7a4
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
407 | 410 | | |
408 | 411 | | |
409 | 412 | | |
| |||
2345 | 2348 | | |
2346 | 2349 | | |
2347 | 2350 | | |
2348 | | - | |
2349 | | - | |
| 2351 | + | |
2350 | 2352 | | |
2351 | 2353 | | |
2352 | 2354 | | |
| |||
0 commit comments
Comments
(0)