You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2002-02-28.15:32:04.000>created_at=<Date2002-02-26.10:40:51.000>labels= ['library']
title='Robotparser does not handle empty paths'updated_at=<Date2002-02-28.15:32:04.000>user='https://bugs.python.org/cmalamas'
My reading of the RFC is that an empty path is always
a global allow (for both Allow and Disallow
directives) so that the syntax is backwards
compatible --there was no Allow directive in the
original syntax.
Suggested fix:
robotparser.RuleLine.applies_to() becomes:
def applies_to(self, filename):
if not self.path:
self.allowance = 1
return self.path=="*" or re.match(self.path,
filename)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: