def _is_analytic(f, x):
    from sympy import Heaviside, Abs
    return not any(x in expr.free_symbols for expr in f.atoms(Heaviside, Abs))
I call this to clean up when one or all of my connections has died.
dataset/ETHPy150Open sympy/sympy/sympy/integrals/meijerint.py/_is_analytic--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/process.py/PTYProcess.connectionLost