Home
last modified time | relevance | path

Searched refs:environ (Results 1 - 25 of 354) sorted by relevance

12345678910>>...15

/third_party/python/Lib/wsgiref/
H A Dutil.py29 def guess_scheme(environ):
32 if environ.get("HTTPS") in ('yes','on','1'):
37 def application_uri(environ):
39 url = environ['wsgi.url_scheme']+'://'
42 if environ.get('HTTP_HOST'):
43 url += environ['HTTP_HOST']
45 url += environ['SERVER_NAME']
47 if environ['wsgi.url_scheme'] == 'https':
48 if environ['SERVER_PORT'] != '443':
49 url += ':' + environ['SERVER_POR
[all...]
H A Dvalidate.py151 environ, start_response = args
153 check_environ(environ)
178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input'])
179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors'])
181 iterator = application(environ, start_response_wrapper)
298 def check_environ(environ):
299 assert_(type(environ) is dict,
301 % (type(environ), enviro
[all...]
H A Dhandlers.py42 environ = {}
44 # Take the basic environment from native-unicode os.environ. Attempt to
47 for k, v in os.environ.items():
50 # On win32, the os.environ is natively Unicode. Different servers
53 software = os.environ.get('SERVER_SOFTWARE', '').lower()
66 # to the Unicode environ. No modification needed.
80 # the environ using stdio byte-oriented interfaces, ending up
85 # Recover bytes from unicode environ, using surrogate escapes
90 environ[k] = v
91 return environ
[all...]
/third_party/toybox/lib/
H A Denv.c6 extern char **environ;
16 for (ev = environ; *ev; ev++) bytes += sizeof(char *) + strlen(*ev) + 1; in environ_bytes()
26 *environ = 0; in xclearenv()
40 while (environ[toys.envc++]); in xsetenv()
42 environ, toys.envc*sizeof(char *)); in xsetenv()
43 environ = (void *)new; in xsetenv()
57 for (i = 0; environ[i]; i++) { in xsetenv()
59 if (!memcmp(name, environ[i], len) && environ[i][len]=='=') { in xsetenv()
60 if (i>=envc) free(environ[ in xsetenv()
[all...]
/third_party/python/Lib/distutils/
H A Dsysconfig.py127 elif n in os.environ:
129 item = os.environ[n]
218 if 'CC' in os.environ:
219 newcc = os.environ['CC']
221 and 'LDSHARED' not in os.environ
227 if 'CXX' in os.environ:
228 cxx = os.environ['CXX']
229 if 'LDSHARED' in os.environ:
230 ldshared = os.environ['LDSHARED']
231 if 'CPP' in os.environ
[all...]
/third_party/googletest/googlemock/test/
H A Dgmock_leak_test.py41 environ = gmock_test_utils.environ variable
58 env=environ).exit_code)
62 env=environ).exit_code)
69 env=environ).exit_code)
74 env=environ).exit_code)
81 env=environ).exit_code)
86 env=environ).exit_code)
93 env=environ).exit_code)
100 env=environ)
[all...]
/third_party/musl/libc-test/src/functional/
H A Denv.c10 extern char **environ;
17 if (!environ) in main()
18 t_error("environ is NULL\n"); in main()
19 if (clearenv() || (environ && *environ)) in main()
23 if (strcmp(environ[0],"TEST=1") != 0) in main()
24 t_error("putenv failed: environ[0]: %s, wanted \"TEST=1\"\n", environ[0]); in main()
25 if ((s=environ[1])) in main()
26 t_error("environ[ in main()
[all...]
/third_party/python/Lib/test/
H A Dtest_cgi.py106 def gen_result(data, environ):
110 form = cgi.FieldStorage(fp=fake_stdin, environ=environ, encoding=encoding)
171 environ={"REQUEST_METHOD":"PUT"})
185 fs = cgi.FieldStorage(environ=env)
216 fs = cgi.FieldStorage(separator=';', environ=env)
270 fs = cgi.FieldStorage(fp=f, environ=env)
285 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
304 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
322 fs = cgi.FieldStorage(fp, environ
[all...]
H A Dtest_script_helper.py88 with mock.patch.dict(os.environ):
89 os.environ.pop('PYTHONHOME', None)
97 with mock.patch.dict(os.environ):
98 os.environ.pop('PYTHONHOME', None)
106 with mock.patch.dict(os.environ):
107 os.environ.pop('PYTHONHOME', None)
118 with mock.patch.dict(os.environ):
119 os.environ['PYTHONHOME'] = 'MockedHome'
H A Dtest_wsgiref.py50 def hello_app(environ,start_response):
58 def header_app(environ, start_response):
64 environ['HTTP_X_TEST_HEADER'], environ['QUERY_STRING'],
65 environ['PATH_INFO']
148 def bad_app(environ,start_response):
163 def bad_app(environ, start_response):
222 # PEP3333 says environ variables are decoded as latin1.
245 def app(environ, start_response):
512 os_environ = dict(os.environ
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_sysconfig.py123 os.environ['AR'] = 'env_ar'
124 os.environ['CC'] = 'env_cc'
125 os.environ['CPP'] = 'env_cpp'
126 os.environ['CXX'] = 'env_cxx --env-cxx-flags'
127 os.environ['LDSHARED'] = 'env_ldshared'
128 os.environ['LDFLAGS'] = '--env-ldflags'
129 os.environ['ARFLAGS'] = '--env-arflags'
130 os.environ['CFLAGS'] = '--env-cflags'
131 os.environ['CPPFLAGS'] = '--env-cppflags'
152 del os.environ['A
[all...]
/third_party/python/Lib/
H A Dcgi.py129 def parse(fp=None, environ=os.environ, keep_blank_values=0,
137 environ : environment dictionary; default: os.environ
167 if not 'REQUEST_METHOD' in environ:
168 environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone
169 if environ['REQUEST_METHOD'] == 'POST':
170 ctype, pdict = parse_header(environ['CONTENT_TYPE'])
174 clength = int(environ['CONTENT_LENGTH'])
180 if 'QUERY_STRING' in environ
[all...]
H A D_osx_support.py33 os.environ['PATH']. Returns the complete filename or None if not found.
36 path = os.environ['PATH']
215 if 'CC' in os.environ:
252 if cv in _config_vars and cv not in os.environ:
265 if cv in _config_vars and cv not in os.environ:
286 if 'CC' in os.environ:
306 if cv in _config_vars and cv not in os.environ:
319 if 'ARCHFLAGS' in os.environ:
320 arch = os.environ['ARCHFLAGS']
350 if cv in _config_vars and cv not in os.environ
[all...]
H A Dntpath.py334 if 'USERPROFILE' in os.environ:
335 userhome = os.environ['USERPROFILE']
336 elif not 'HOMEPATH' in os.environ:
340 drive = os.environ['HOMEDRIVE']
343 userhome = join(drive, os.environ['HOMEPATH'])
349 current_user = os.environ.get('USERNAME')
395 environ = getattr(os, 'environb', None)
406 environ = os.environ
436 if environ i
[all...]
/third_party/googletest/googletest/test/
H A Dgtest_test_utils.py53 environ = os.environ.copy() variable
60 environ[env_var] = value
61 elif env_var in environ:
62 del environ[env_var]
89 if flag.upper() in os.environ:
90 _flag_map[flag] = os.environ[flag.upper()]
252 if GTEST_OUTPUT_VAR_NAME in os.environ:
253 del os.environ[GTEST_OUTPUT_VAR_NAME]
H A Dgoogletest-filter-unittest.py57 # os.environ. We then use 'eval' to parse the child's output so that an
61 os.environ['EMPTY_VAR'] = ''
63 [sys.executable, '-c', 'import os; print(\'EMPTY_VAR\' in os.environ)'])
70 # is NO LONGER in os.environ.
75 os.environ['UNSET_VAR'] = 'X'
76 del os.environ['UNSET_VAR']
78 [sys.executable, '-c', 'import os; print(\'UNSET_VAR\' not in os.environ)'
174 environ = os.environ.copy() variable
181 environ[env_va
[all...]
H A Dgoogletest-env-var-test.py43 environ = os.environ.copy() variable
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
68 return gtest_test_utils.Subprocess(args, env=environ).output
H A Dgoogletest-output-test.py217 environ = os.environ.copy()
218 environ.update(env_cmd[0])
219 p = gtest_test_utils.Subprocess(env_cmd[1], env=environ)
235 environ, cmdline = env_cmd
236 environ = dict(environ) # Ensures we are modifying a copy.
237 environ[CATCH_EXCEPTIONS_ENV_VAR_NAME] = '1'
238 return NormalizeOutput(GetShellCommandOutput((environ, cmdline)))
H A Dgoogletest-catch-exceptions-test.py56 environ = gtest_test_utils.environ variable
67 [EXE_PATH, LIST_TESTS_FLAG], env=environ).output
72 BINARY_OUTPUT = gtest_test_utils.Subprocess([EXE_PATH], env=environ).output
75 [EX_EXE_PATH], env=environ).output
228 env=environ).output
/third_party/python/Tools/scripts/
H A Drun_tests.py35 cross_compile = '_PYTHON_HOST_PLATFORM' in os.environ
36 if (hostrunner := os.environ.get("_PYTHON_HOSTRUNNER")) is None:
47 environ = {
48 name: value for name, value in os.environ.items()
52 environ = os.environ.copy()
88 os.execve(sys.executable, args, environ)
/third_party/node/tools/gyp/pylib/gyp/
H A Dmac_tool.py88 if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
90 if "IPHONEOS_DEPLOYMENT_TARGET" in os.environ:
98 os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
107 os.environ["MACOSX_DEPLOYMENT_TARGET"],
191 for key in os.environ:
195 evalue = os.environ[key]
205 evalue = IDENT_RE.sub("_", os.environ[key])
209 evalue = IDENT_RE.sub("-", os.environ[key])
271 env = os.environ.copy()
383 is_iphone_target = "IPHONEOS_DEPLOYMENT_TARGET" in os.environ
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dmac_tool.py88 if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
90 if "IPHONEOS_DEPLOYMENT_TARGET" in os.environ:
98 os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
107 os.environ["MACOSX_DEPLOYMENT_TARGET"],
191 for key in os.environ:
195 evalue = os.environ[key]
205 evalue = IDENT_RE.sub("_", os.environ[key])
209 evalue = IDENT_RE.sub("-", os.environ[key])
271 env = os.environ.copy()
383 is_iphone_target = "IPHONEOS_DEPLOYMENT_TARGET" in os.environ
[all...]
/third_party/gn/build/
H A Dgen.py375 cxx = os.environ.get('CXX', 'cl.exe')
376 ld = os.environ.get('LD', 'link.exe')
377 ar = os.environ.get('AR', 'lib.exe')
379 cxx = os.environ.get('CXX', 'g++')
380 ld = os.environ.get('LD', 'g++')
381 ar = os.environ.get('AR', 'ar -X64')
383 cxx = os.environ.get('CXX', 'g++')
384 ld = os.environ.get('LD', 'g++')
385 ar = os.environ.get('AR', 'ar')
387 cxx = os.environ
[all...]
/third_party/lz4/tests/
H A Dtest-lz4-abi.py28 env = os.environ.copy()
44 env = os.environ.copy()
107 build_env = os.environ.copy()
118 build_env = os.environ.copy()
130 run_env = os.environ.copy()
148 build_env = os.environ.copy()
162 run_env = os.environ.copy()
/third_party/node/
H A Dandroid_configure.py65 os.environ['PATH'] += os.pathsep + toolchain_path + "/bin"
66 os.environ['CC'] = toolchain_path + "/bin/" + TOOLCHAIN_PREFIX + android_sdk_version + "-" + "clang"
67 os.environ['CXX'] = toolchain_path + "/bin/" + TOOLCHAIN_PREFIX + android_sdk_version + "-" + "clang++"
73 os.environ['GYP_DEFINES'] = GYP_DEFINES

Completed in 12 milliseconds

12345678910>>...15