Skip to content

gh-79638: Restore "Treat an unreachable robots.txt as disallow all"#152525

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-79638-restore
Open

gh-79638: Restore "Treat an unreachable robots.txt as disallow all"#152525
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-79638-restore

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

The gh-79638 change ("Treat an unreachable robots.txt as 'disallow all'", GH-138555) was accidentally reverted by the gh-106693 / GH-149514 ob_sval revert, which removed the read() 5xx → disallow_all branch in urllib.robotparser and its NEWS entry along with the intended bytesobject.h revert.

This restores the read() behaviour and the NEWS entry. The tests were already restored separately by GH-149569.

…all"

This change was accidentally reverted by f0daba1 (pythongh-106693,
pythonGH-149514), which only intended to revert the ob_sval change.
The tests were already restored by pythonGH-149569.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 28, 2026
@serhiy-storchaka serhiy-storchaka requested a review from hugovk June 28, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant