-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Open
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
https://github.com/python/cpython/blob/3.12/Lib/urllib/robotparser.py#L227
self.path == "*" will never be true because of this line:
https://github.com/python/cpython/blob/3.12/Lib/urllib/robotparser.py#L114
That converts the * character to %2A
Proposed solution
Change in line 227 self.path == "*" to self.path == "%2A"
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement