def patch_mongoengine_field(field_name):
    from mongoengine import common
    field = common._import_class(field_name)
    for k in ["__eq__", "__lt__", "__hash__", "attname"]:
        if not k in field.__dict__:
            setattr(field, k, djangoflavor.DjangoField.__dict__[k])
Close all figures spawned by this class.
dataset/ETHPy150Open MongoEngine/django-mongoengine/django_mongoengine/fields/__init__.py/patch_mongoengine_field--crossover with--dataset/ETHPy150Open daler/metaseq/metaseq/minibrowser.py/BaseMiniBrowser.close_all