Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __new__(cls, settings_name="zappa_settings", session=None):
"""Singleton instance to avoid repeat setup"""
if LambdaHandler.__instance is None:
LambdaHandler.__instance = object.__new__(cls, settings_name, session)
return LambdaHandler.__instance
def __new__(cls, settings_name="zappa_settings", session=None):
"""Singleton instance to avoid repeat setup"""
if LambdaHandler.__instance is None:
LambdaHandler.__instance = object.__new__(cls, settings_name, session)
return LambdaHandler.__instance
def __new__(cls, settings_name="zappa_settings", session=None):
"""Singleton instance to avoid repeat setup"""
if LambdaHandler.__instance is None:
LambdaHandler.__instance = object.__new__(cls, settings_name, session)
return LambdaHandler.__instance