kerncraft/kernel.py
def subs_consts(self, expr):
        """Substitute constants in expression unless it is already a number."""
        if isinstance(expr, numbers.Number):
            return expr
        else:
            return expr.subs(self.constants)
def subs_consts(self, expr):
        if isinstance(expr, numbers.Number):
            return expr
        else:
            return expr.subs(self.constants)
def subs_consts ( self , expr ) : if isinstance ( expr , numbers . Number ) : return expr else : return expr . subs ( self . constants )
Substitute constants in expression unless it is already a number.
Substitute constants in expression unless it is already a number .