fix pre 3.10 bw compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 11 Oct 2010 19:45:15 +0200
changeset 6451 f64899fa0b5c
parent 6450 c23639f26ec6
child 6452 6b6a2fa28069
fix pre 3.10 bw compat
web/views/ibreadcrumbs.py
--- a/web/views/ibreadcrumbs.py	Mon Oct 11 19:13:01 2010 +0200
+++ b/web/views/ibreadcrumbs.py	Mon Oct 11 19:45:15 2010 +0200
@@ -78,7 +78,11 @@
         """
         parent = self.parent_entity()
         if parent is not None:
-            if recurs:
+            if recurs is True:
+                _recurs = set()
+                warn('[3.10] recurs argument should be a set() or None',
+                     DeprecationWarning, stacklevel=2)
+            elif recurs:
                 _recurs = recurs
             else:
                 if recurs is False: