avoid infinite recursion error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Dec 2009 15:19:14 +0100
changeset 4081 64548076add4
parent 4080 f88331eb374c
child 4082 c7117119e215
avoid infinite recursion error
selectors.py
--- a/selectors.py	Wed Dec 09 15:18:57 2009 +0100
+++ b/selectors.py	Wed Dec 09 15:19:14 2009 +0100
@@ -938,7 +938,7 @@
 
 entity_implements = class_renamed('entity_implements', implements)
 
-class but_etype(EntitySelector):
+class _but_etype(EntitySelector):
     """accept if the given entity types are not found in the result set.
 
     See `EntitySelector` documentation for behaviour when row is not specified.
@@ -954,6 +954,4 @@
             return 0
         return 1
 
-but_etype = class_renamed('but_etype', but_etype, 'use ~implements(*etypes) instead')
-
-
+but_etype = class_renamed('but_etype', _but_etype, 'use ~implements(*etypes) instead')