Open
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