Commit f0b234e
authored
The urllib.request no longer uses the deprecated check_hostname
parameter of the http.client module.
Add private http.client._create_https_context() helper to http.client,
used by urllib.request.
Remove the now redundant check on check_hostname and verify_mode in
http.client: the SSLContext.check_hostname setter already implements
the check.
1 parent e69306f commit f0b234e
2 files changed
+23
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
789 | 803 | | |
790 | 804 | | |
791 | 805 | | |
| |||
1418 | 1432 | | |
1419 | 1433 | | |
1420 | 1434 | | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1434 | 1438 | | |
1435 | 1439 | | |
1436 | 1440 | | |
1437 | 1441 | | |
1438 | 1442 | | |
1439 | 1443 | | |
1440 | 1444 | | |
1441 | | - | |
1442 | | - | |
1443 | 1445 | | |
1444 | 1446 | | |
1445 | 1447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1386 | 1391 | | |
1387 | | - | |
1388 | 1392 | | |
1389 | 1393 | | |
1390 | 1394 | | |
1391 | | - | |
| 1395 | + | |
1392 | 1396 | | |
1393 | 1397 | | |
1394 | 1398 | | |
| |||
0 commit comments