

def configure(kwargs):
    for (k, v) in kwargs.iteritems():
        if (k.upper() != k):
            warnings.warn(("Invalid setting, '%s' which is not defined by Nydus" % k))
        elif (k not in globals()):
            warnings.warn(("Invalid setting, '%s' which is not defined by Nydus" % k))
        else:
            globals()[k] = v

dataset/ETHPy150Open disqus/nydus/nydus/conf.py configure/original