def get_dictionary(dict_name):
    """
    Load a dictionary file ``dict_name`` (if it's not cached) and return its
    contents as an array of strings.
    """
    global dictionaries_cache

    if dictionaries_cache not in dict_name:
        try:
            dictionary_file = codecs.open(
                join(DICTIONARIES_PATH, dict_name), 'r', 'utf-8'
            )
        except IOError:
            None
        else:
            dictionaries_cache[dict_name] = dictionary_file.readlines()
            dictionary_file.close()

    return dictionaries_cache[dict_name]
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/forgery_py/dictionaries_loader.py/get_dictionary/swapped operands of `not in`