MCPcopy
hub / github.com/benoitc/gunicorn / env

Method env

gunicorn/config.py:208–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206
207 @property
208 def env(self):
209 raw_env = self.settings['raw_env'].get()
210 env = {}
211
212 if not raw_env:
213 return env
214
215 for e in raw_env:
216 s = util.bytes_to_str(e)
217 try:
218 k, v = s.split('=', 1)
219 except ValueError:
220 raise RuntimeError("environment setting %r invalid" % s)
221
222 env[k] = v
223
224 return env
225
226 @property
227 def sendfile(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected