Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_state(self, state):
DockerSpawner.load_state(self, state)
GitMixin.load_state(self, state)
for key in ('name', 'token', 'login_service'):
if key in state:
setattr(self.user, key, state[key])
self.user.stop_pending = False
self.user.spawn_pending = False