Commit b661fc7
committed
chore: add deprecation suppression, pull in deprecated dependency
This change adds a runtime dep of the 'deprecated' package- this
https://pypi.org/project/Deprecated/ .
However, being that snakeoil can be used by critical code, the
internal snakeoil usage of it explicitly can fallback to py3.13
deprecated implementation, and if it's <py3.13 it just suppresses
the deprecations in full.
By "can fallback", this includes ImportError- broken import, and missing.
It's not optimal, but this is sane enough frankly.
Signed-off-by: Brian Harring <ferringb@gmail.com>1 parent 03c2abd commit b661fc7
File tree
3 files changed
+50
-29
lines changed- src/snakeoil
- tests/klass
3 files changed
+50
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
1 | 18 | | |
2 | 19 | | |
| 20 | + | |
| 21 | + | |
3 | 22 | | |
4 | 23 | | |
5 | 24 | | |
6 | | - | |
7 | 25 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 26 | + | |
11 | 27 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
17 | 47 | | |
18 | | - | |
19 | | - | |
| 48 | + | |
| 49 | + | |
20 | 50 | | |
21 | | - | |
| 51 | + | |
22 | 52 | | |
23 | 53 | | |
24 | 54 | | |
25 | 55 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
34 | 59 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
0 commit comments