Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_state(self):
state = DockerSpawner.get_state(self)
state.update(GitMixin.get_state(self))
state.update(dict(
name=self.user.name,
))
if hasattr(self.user, 'token'):
state.update(dict(token=self.user.token))
if hasattr(self.user, 'login_service'):
state.update(dict(login_service=self.user.login_service))
return state