def request_environment_for_wsgi_env(wsgi_env):

    # Return all key, value pairs from wsgi_env where value is a string.
    return {key: value
            for key, value in wsgi_env.iteritems()
            if isinstance(value, basestring)}
Get a dict of key-value pairs from wsgi_env that work as env variables.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-vmruntime/vmruntime/middleware.py/request_environment_for_wsgi_env