German-Immersive-Railroading-Community / BackupSystem

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
2 years ago2 years old
Redefining name 'data' from outer scope (line 47)
 47data = {}
 48
 49
 50def implement(json, data): 51    """Loads data from a JSON"""
 52    lg.info('Reading data from data.json')
 53    for key, value in json.items():
Redefining name 'json' from outer scope (line 5)
 47data = {}
 48
 49
 50def implement(json, data): 51    """Loads data from a JSON"""
 52    lg.info('Reading data from data.json')
 53    for key, value in json.items():