summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-01-05 11:18:34 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-01-05 11:18:34 +0100
commit8c91e3df875319768b6699ccf7654ccb5a357c6d (patch)
tree92e15a34efd4866ffdbfcf9f54d1e60611bc3c0f
parentcf83c608bf2fb4e9f458cc0ee31f87cc0948345d (diff)
downloadcrocoite-8c91e3df875319768b6699ccf7654ccb5a357c6d.tar.gz
crocoite-8c91e3df875319768b6699ccf7654ccb5a357c6d.tar.bz2
crocoite-8c91e3df875319768b6699ccf7654ccb5a357c6d.zip
controller: Fix PrefixLimit
Probably broken by the transition to URL() in commit 5e444dd6511d97308a84ae9c86ebf14547d01f01 And yes, we desperately need some tests for this.
-rw-r--r--crocoite/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index a64a8dc..d6f6d7a 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -265,7 +265,7 @@ class PrefixLimit (RecursionPolicy):
self.prefix = prefix
def __call__ (self, urls):
- return set (filter (lambda u: u.startswith (self.prefix), urls))
+ return set (filter (lambda u: str(u).startswith (str (self.prefix)), urls))
class RecursiveController:
"""