How to use the jsondiff.symbols function in jsondiff

To help you get started, we’ve selected a few jsondiff examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DOAJ / doaj / portality / scripts / View on Github external
def fix_layer(d):
        if not isinstance(d, dict):
            return d
        newData = {}
        for k, v in d.items():
            if isinstance(k, symbols.Symbol):
                newData[repr(k)] = v
                newData[k] = v
        return newData