--- a/selectors.py Mon Mar 23 17:38:30 2009 +0100
+++ b/selectors.py Mon Mar 23 17:55:59 2009 +0100
@@ -53,7 +53,7 @@
from cubicweb import Unauthorized, NoSelectableObject, NotAnEntity, role
from cubicweb.vregistry import (NoSelectableObject, Selector,
- chainall, chainfirst, objectify_selector)
+ chainall, objectify_selector)
from cubicweb.cwconfig import CubicWebConfiguration
from cubicweb.schema import split_expression
@@ -619,7 +619,7 @@
return int(self.target_etype in rschema.objects(eschema))
else:
return int(self.target_etype in rschema.subjects(eschema))
- except KeyError, ex:
+ except KeyError:
return 0
return 1