

def request_environment_for_wsgi_env(wsgi_env):
    'Get a dict of key-value pairs from wsgi_env that work as env variables.\n\n  Does not mutate input.\n\n  Args:\n    wsgi_env: WSGI request env data.\n\n  Returns:\n    A dictionary suitable for use in `os.environ.update(output)`.\n  '
    return {key: value for (key, value) in wsgi_env.iteritems() if isinstance(value, basestring)}

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-vmruntime/vmruntime/middleware.py request_environment_for_wsgi_env/original