Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

serhiy-storchaka
Copy link
Member

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

Copy link
Member

@sobolevn sobolevn left a comment

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
42 checks passed
@miss-islington-app
Copy link

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 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jan 12, 2025

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 <[email protected]>
@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 12, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 12, 2025

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 bug and security fixes label Jan 12, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 12, 2025

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

@bedevere-app
Copy link

bedevere-app bot commented Jan 12, 2025

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 <[email protected]>
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