def disable_insecure_serializers(allowed=['json']):
    for name in registry._decoders:
        registry.disable(name)
    if allowed is not None:
        for name in allowed:
            registry.enable(name)


# Insecure serializers are disabled by default since v3.0
Get the next line from the input buffer.
dataset/ETHPy150Open celery/kombu/kombu/serialization.py/disable_insecure_serializers--crossover with--dataset/ETHPy150Open sahana/eden/static/scripts/tools/pep8.py/Checker.readline