# HG changeset patch # User Adrien Di Mascio # Date 1234899121 -3600 # Node ID 6a1f4210ee4c5cfc8b942f092e3ed2f71b6029a1 # Parent 2538262ffc29c1eff30dc34193e500a86683c924 allow selectors to be a single element instead of tuples (this is the first step towards removing the metaclass) diff -r 2538262ffc29 -r 6a1f4210ee4c vregistry.py --- a/vregistry.py Tue Feb 17 18:17:51 2009 +0100 +++ b/vregistry.py Tue Feb 17 20:32:01 2009 +0100 @@ -105,6 +105,8 @@ "can't be used together") if '__select__' not in classdict and '__selectors__' in classdict: selectors = classdict['__selectors__'] + if not isinstance(selectors, (tuple, list)): + selectors = (selectors,) if len(selectors) > 1: classdict['__select__'] = classmethod(chainall(*selectors)) else: