Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/b/u/Buckley-HEAD/sketch/util/http.py   Buckley(Download)
def redirect(location, code = 302):
  assert code in (301, 302, 303, 305, 307), 'invalid code'
  from sketch import Response
  display_location = location
  response = Response(
    '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n'

src/b/u/Buckley-HEAD/sketch/exception.py   Buckley(Download)
                # are circular dependencies when bootstrapping the module.
                # environ = _get_environ(environ)
                from sketch import Response
                headers = self.get_headers(environ)
                return Response(self.get_body(environ), self.code, headers)