(url)
| 86 | @filter_decorator |
| 87 | def has_exactly_n_segments(n): |
| 88 | def filter_func(url): |
| 89 | path = urlparse(url).path.strip("/") |
| 90 | segments = path.split("/") if path else [] |
| 91 | return len(segments) == n |
| 92 | |
| 93 | return filter_func |
| 94 |
nothing calls this directly
no outgoing calls
no test coverage detected