def integer_loglevel(loglevel):
    try:
        loglevel = int(loglevel)
    except __HOLE__:
        if isinstance(loglevel, str):
            loglevel = getattr(logging, loglevel)
    return loglevel
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/util.py/integer_loglevel