Commits

Brian Beck committed 53943f1

Sigh, I guess I'll use super().

  • Participants
  • Parent commits c8b9846

Comments (0)

Files changed (3)

lib/telescope/sparql/expressions.py

 
 class BinaryExpression(Expression):
     def __init__(self, operator, left, right):
-        Expression.__init__(self, None, operator)
+        super(BinaryExpression, self).__init__(None, operator)
         self.left = left
         self.right = right
 
 
 class ConditionalExpression(Expression):
     def __init__(self, operator, operands):
-        Expression.__init__(self, None, operator)
+        super(ConditionalExpression, self).__init__(None, operator)
         self.operands = operands
 
     def __repr__(self):

lib/telescope/sparql/operators.py

 
 class FunctionCall(Expression):
     def __init__(self, operator, arg_list):
-        Expression.__init__(self, None, operator)
+        super(FunctionCall, self).__init__(None, operator)
         self.arg_list = arg_list
     
     def __repr__(self):
     
     def __getattribute__(self, operator):
         try:
-            value = object.__getattribute__(self, operator)
+            value = super(OperatorConstructor, self).__getattribute__(operator)
         except AttributeError:
             if self._namespace:
                 operator = self._namespace[operator]
 
 class BuiltinOperatorConstructor(OperatorConstructor):
     def __init__(self):
-        OperatorConstructor.__init__(self, None)
+        super(BuiltinOperatorConstructor, self).__init__(None)
 
     def __call__(self, namespace):
         return OperatorConstructor(namespace)

lib/telescope/sparql/patterns.py

 
 class GroupGraphPattern(GraphPattern):
     def __init__(self, patterns, optional=False):
-        GraphPattern.__init__(self, patterns)
+        super(GroupGraphPattern, self).__init__(patterns)
         self.optional = optional
 
 class UnionGraphPattern(GraphPattern):
     def __init__(self, patterns):
-        GraphPattern.__init__(self, patterns)
+        super(UnionGraphPattern, self).__init__(patterns)
 
 # Helpers. Normally imported from telescope.sparql.helpers.