Skip to content

gh-128731: Fix ResourceWarning in robotparser.RobotFileParser.read()#128733

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:robotparse-warnings
Jan 12, 2025
Merged

gh-128731: Fix ResourceWarning in robotparser.RobotFileParser.read()#128733
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:robotparse-warnings

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jan 11, 2025

Copy link
Copy Markdown
Member

Comment thread Misc/NEWS.d/next/Library/2025-01-11-13-40-12.gh-issue-128731.qpKlai.rst Outdated

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning is gone with this change:

» ./python.exe -m test test_robotparser
Using random seed: 3011282491
0:00:00 load avg: 3.90 Run 1 test sequentially in a single process
0:00:00 load avg: 3.90 [1/1] test_robotparser

== Tests result: SUCCESS ==

1 test OK.

Total duration: 81 ms
Total tests: run=60 skipped=1
Total test files: run=1/1
Result: SUCCESS

@serhiy-storchaka serhiy-storchaka merged commit 5e65a1a into python:main Jan 12, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the robotparse-warnings branch January 12, 2025 13:14
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 12, 2025
…ead() (pythonGH-128733)

(cherry picked from commit 5e65a1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented Jan 12, 2025

Copy link
Copy Markdown

GH-128755 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 12, 2025
…ead() (pythonGH-128733)

(cherry picked from commit 5e65a1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jan 12, 2025
@bedevere-app

bedevere-app Bot commented Jan 12, 2025

Copy link
Copy Markdown

GH-128756 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Jan 12, 2025
@bedevere-app

bedevere-app Bot commented Jan 12, 2025

Copy link
Copy Markdown

GH-128755 is a backport of this pull request to the 3.13 branch.

@bedevere-app

bedevere-app Bot commented Jan 12, 2025

Copy link
Copy Markdown

GH-128756 is a backport of this pull request to the 3.12 branch.

serhiy-storchaka added a commit that referenced this pull request Jan 12, 2025
…otFileParser.read() (GH-128733) (GH-128756)

(cherry picked from commit 5e65a1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Jan 13, 2025
…otFileParser.read() (GH-128733) (GH-128755)

(cherry picked from commit 5e65a1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants