Commit 523a8df
committed
Fix patching of removed URLopener class in Python 3.14
The class urllib.request.URLopener has been removed in Python 3.14:
python/cpython#125739
Because of this, trying to run the tests in `test__greenness.py` fails
with the following on Python 3.14:
```
ERROR tests/test__greenness.py - NameError: name 'URLopener' is not defined
```
Update the patching so that we only do it for Python versions lower than
3.14.1 parent e470c1f commit 523a8df
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
0 commit comments