def not_set(string):
    if string is None:
        return True
    elif string == '':
        return True
    return False
Returns an object containing the state of the warnings module
dataset/ETHPy150Open sebdah/scrapy-mongodb/scrapy_mongodb.py/not_set--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/test/utils.py/get_warnings_state