chore: remove unused RequestContext class (#18152)

This commit is contained in:
Sagar Vora 2022-09-15 23:22:14 +05:30 committed by GitHub
parent 2e7d41047b
commit 709c9305ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,17 +33,6 @@ SAFE_HTTP_METHODS = ("GET", "HEAD", "OPTIONS")
UNSAFE_HTTP_METHODS = ("POST", "PUT", "DELETE", "PATCH")
class RequestContext:
def __init__(self, environ):
self.request = Request(environ)
def __enter__(self):
init_request(self.request)
def __exit__(self, type, value, traceback):
frappe.destroy()
@local_manager.middleware
@Request.application
def application(request: Request):