

def __call__(self, *a, **kw):
    app = DumbApplication(*a, **kw)
    app.status_codes = self.status_codes
    try:
        app.default_status_code = self.status_codes[(- 1)]
    except IndexError:
        app.default_status_code = 200
    app.body = self.body
    return app

dataset/ETHPy150Open notmyname/slogging/test_slogging/unit/test_internal_proxy.py DumbApplicationFactory.__call__/original