Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
if 'response' in kwargs:
self.response = kwargs.pop('response')
else:
self.response = Response()
if 'app' in kwargs:
self.app = kwargs.pop('app')
if len(args) == 0:
args = [[]]
else:
self.app = no_default
Base.__init__(self, *args, **kwargs)
if self._parent is not no_default:
self.app = self._parent.app