# HG changeset patch # User Sylvain Thénault # Date 1286819115 -7200 # Node ID f64899fa0b5ce83cfb7d46fe95af9a434a43cde7 # Parent c23639f26ec68c8f9cd435ba8e2482f0301f1680 fix pre 3.10 bw compat diff -r c23639f26ec6 -r f64899fa0b5c 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: