Strip trailing whitespace, drop unused imports/variables/global statements, split multi-imports, fix E3xx/E1xx spacing and E712 comparisons. No behaviour change; only E501 long lines remain in flake8. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
15 lines
363 B
Python
15 lines
363 B
Python
msgs = [] # in-memory list of recent messages for new websocket clients; also logged to file via notify.eventlog
|
|
|
|
|
|
class Data:
|
|
|
|
def __init__(self, config):
|
|
self.config = config
|
|
self.data = {}
|
|
|
|
def update(self, new_data):
|
|
self.data.update(new_data)
|
|
|
|
def get(self, key, default=None):
|
|
return self.data.get(key, default)
|