MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __getattr__

Method __getattr__

tools/settings.py:366–373  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

364 self.allowed_settings.update(allowed)
365
366 def __getattr__(self, attr):
367 if self.allowed_settings:
368 assert attr in self.allowed_settings, f"internal error: attempt to read setting '{attr}' while in limited settings mode"
369
370 if attr in self.attrs:
371 return self.attrs[attr]
372 else:
373 raise AttributeError(f"no such setting: '{attr}'")
374
375 def __setattr__(self, name, value):
376 if self.allowed_settings:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected