Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, syntax='compact', load=False, dump=False, marshal=False, loader=default_loader, dumper=default_dumper):
self.options = JsonDiffer.Options()
self.options.syntax = builtin_syntaxes.get(syntax, syntax)
self.options.load = load
self.options.dump = dump
self.options.marshal = marshal
self.options.loader = loader
self.options.dumper = dumper
self._symbol_map = {
'$' + symbol.label: symbol
for symbol in _all_symbols_
}