German-Immersive-Railroading-Community / BackupSystem

Bad comparison test PTC-W0023
2 years ago2 years old
Use is when comparing type of two objects
 51    """Loads data from a JSON"""
 52'Reading data from data.json')
 53    for key, value in json.items():
 54        if type(value) == dict and key in data: 55            data[key] = implement(value, data[key])
 56        else:
 57            data[key] = value