MCPcopy Index your code
hub / github.com/python/cpython / allowance

Method allowance

Lib/urllib/robotparser.py:281–288  ·  view source on GitHub ↗

Preconditions: - our agent applies to this entry - filename is URL encoded

(self, filename)

Source from the content-addressed store, hash-verified

279 return False
280
281 def allowance(self, filename):
282 """Preconditions:
283 - our agent applies to this entry
284 - filename is URL encoded"""
285 for line in self.rulelines:
286 if line.applies_to(filename):
287 return line.allowance
288 return True

Callers 1

can_fetchMethod · 0.80

Calls 1

applies_toMethod · 0.45

Tested by

no test coverage detected