(self, path, allowance)
| 232 | """A rule line is a single "Allow:" (allowance==True) or "Disallow:" |
| 233 | (allowance==False) followed by a path.""" |
| 234 | def __init__(self, path, allowance): |
| 235 | if path == '' and not allowance: |
| 236 | # an empty value means allow all |
| 237 | allowance = True |
| 238 | self.path = normalize_path(path) |
| 239 | self.allowance = allowance |
| 240 | |
| 241 | def applies_to(self, filename): |
| 242 | return self.path == "*" or filename.startswith(self.path) |
nothing calls this directly
no test coverage detected