sanitize_dict#

sanitize_dict(input_dict)[source]#

Given a nested dictionary, ensures that all nested dicts are normal Python dicts. This is necessary for pickling, or just converting an ‘auto-vivifying’ dict to something that acts normal.