def not_set(string):
    if string is None:
        return True
    elif string == '':
        return True
    return False
Check if a string is None or ''
dataset/ETHPy150Open sebdah/scrapy-mongodb/scrapy_mongodb.py/not_set