def purge_none(d):
    for k in d.keys():
        if d[k] is None:
            del d[k]
    return d
.. todo::
dataset/ETHPy150Open StackStorm/st2contrib/packs/lastline/actions/lib/analysis_apiclient.py/purge_none--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/dbm/ising.py/BoltzmannIsingHidden.ising_b