from flask.ctx import RequestContext as RequestContextBase
from flask.ctx import has_request_context  # noqa


class RequestContext(RequestContextBase):
    """
    The request context contains all request relevant information.  It is
    created at the beginning of the request and pushed to the
    `_request_ctx_stack` and removed at the end of it.  It will create the
    URL adapter and request object for the WSGI environment provided.
    """

    def __init__(self, app, environ):
        super(RequestContext, self).__init__(app, environ)
        self.transaction = None
        self.cache = app.cache

from flask.ctx import RequestContext as RequestContextBase
from flask.ctx import has_request_context  # noqa


class RequestContext(RequestContextBase):
    """
    The request context contains all request relevant information.  It is
    created at the beginning of the request and pushed to the
    `_request_ctx_stack` and removed at the end of it.  It will create the
    URL adapter and request object for the WSGI environment provided.
    """

    def __init__(self, app, environ, request=None):
        super(RequestContext, self).__init__(app, environ, request)
        self.transaction = None
        self.cache = app.cache

Add request argument for RequestContext
Add request argument for RequestContext

See: cb2055bbcb345e367b6bdfe177a407546286695c@097353695e3178a38403b204ae4889c8a32bf997

  from flask.ctx import RequestContext as RequestContextBase
  from flask.ctx import has_request_context  # noqa
  
  
  class RequestContext(RequestContextBase):
      """
      The request context contains all request relevant information.  It is
      created at the beginning of the request and pushed to the
      `_request_ctx_stack` and removed at the end of it.  It will create the
      URL adapter and request object for the WSGI environment provided.
      """
  
-     def __init__(self, app, environ):
+     def __init__(self, app, environ, request=None):
-         super(RequestContext, self).__init__(app, environ)
+         super(RequestContext, self).__init__(app, environ, request)
          self.transaction = None
          self.cache = app.cache
  
Add request argument for RequestContext
## Code Before:
from flask.ctx import RequestContext as RequestContextBase
from flask.ctx import has_request_context  # noqa


class RequestContext(RequestContextBase):
    """
    The request context contains all request relevant information.  It is
    created at the beginning of the request and pushed to the
    `_request_ctx_stack` and removed at the end of it.  It will create the
    URL adapter and request object for the WSGI environment provided.
    """

    def __init__(self, app, environ):
        super(RequestContext, self).__init__(app, environ)
        self.transaction = None
        self.cache = app.cache

## Instruction:
Add request argument for RequestContext
## Code After:
from flask.ctx import RequestContext as RequestContextBase
from flask.ctx import has_request_context  # noqa


class RequestContext(RequestContextBase):
    """
    The request context contains all request relevant information.  It is
    created at the beginning of the request and pushed to the
    `_request_ctx_stack` and removed at the end of it.  It will create the
    URL adapter and request object for the WSGI environment provided.
    """

    def __init__(self, app, environ, request=None):
        super(RequestContext, self).__init__(app, environ, request)
        self.transaction = None
        self.cache = app.cache
