| /external/python/cpython3/Lib/wsgiref/ |
| D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 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_PORT'] [all …]
|
| D | validate.py | 151 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): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
| D | handlers.py | 42 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 …]
|
| /external/python/cpython2/Lib/wsgiref/ |
| D | util.py | 35 def guess_scheme(environ): argument 38 if environ.get("HTTPS") in ('yes','on','1'): 43 def application_uri(environ): argument 45 url = environ['wsgi.url_scheme']+'://' 48 if environ.get('HTTP_HOST'): 49 url += environ['HTTP_HOST'] 51 url += environ['SERVER_NAME'] 53 if environ['wsgi.url_scheme'] == 'https': 54 if environ['SERVER_PORT'] != '443': 55 url += ':' + environ['SERVER_PORT'] [all …]
|
| D | validate.py | 146 environ, start_response = args 148 check_environ(environ) 173 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 174 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 176 iterator = application(environ, start_response_wrapper) 290 def check_environ(environ): argument 291 assert_(type(environ) is DictType, 293 % (type(environ), environ)) 299 assert_(key in environ, 303 assert_(key not in environ, [all …]
|
| /external/grpc-grpc/tools/run_tests/artifacts/ |
| D | artifact_targets.py | 32 environ={}, argument 40 environ = environ.copy() 41 environ["ARTIFACTS_OUT"] = "artifacts/%s" % name 44 for k, v in list(environ.items()): 57 environ=docker_env, 70 environ={}, argument 80 environ = environ.copy() 82 environ["WORKSPACE_NAME"] = "workspace_%s" % name 83 environ["ARTIFACTS_OUT"] = os.path.join("..", "artifacts", name) 89 environ["ARTIFACTS_OUT"] = os.path.join("artifacts", name) [all …]
|
| D | package_targets.py | 28 environ={}, argument 33 environ = environ.copy() 36 for k, v in list(environ.items()): 47 environ=docker_env, 59 environ=None, argument 69 environ=environ, 95 environ = { 108 environ=environ, 114 environ["EXTERNAL_GIT_ROOT"] = repo_root 116 self.name, ["bash", build_script], environ=environ [all …]
|
| /external/rust/crates/grpcio-sys/grpc/tools/run_tests/artifacts/ |
| D | artifact_targets.py | 31 environ={}, argument 38 environ = environ.copy() 39 environ['ARTIFACTS_OUT'] = 'artifacts/%s' % name 42 for k, v in list(environ.items()): 55 environ=docker_env, 66 environ={}, argument 75 environ = environ.copy() 77 environ['WORKSPACE_NAME'] = 'workspace_%s' % name 78 environ['ARTIFACTS_OUT'] = os.path.join('..', 'artifacts', name) 82 environ['ARTIFACTS_OUT'] = os.path.join('artifacts', name) [all …]
|
| D | package_targets.py | 27 environ={}, argument 31 environ = environ.copy() 34 for k, v in list(environ.items()): 45 environ=docker_env, 55 environ=None, argument 63 environ=environ, 88 environ = { 100 environ=environ) 104 environ['EXTERNAL_GIT_ROOT'] = repo_root 106 environ=environ) [all …]
|
| /external/toybox/lib/ |
| D | env.c | 6 extern char **environ; 16 for (ev = environ; *ev; ev++) bytes += sizeof(char *) + strlen(*ev) + 1; in environ_bytes() 28 for (i = 0; environ[i]; i++) if (i>=toys.envc) free(environ[i]); in xclearenv() 29 } else environ = xmalloc(256*sizeof(char *)); in xclearenv() 31 *environ = 0; in xclearenv() 47 while (environ[toys.envc++]); in xsetenv() 48 memcpy(new = xmalloc(((toys.envc|31)+1)*sizeof(char *)), environ, in xsetenv() 50 environ = (void *)new; in xsetenv() 62 for (i = 0; environ[i]; i++) { in xsetenv() 64 if (!smemcmp(name, environ[i], len) && environ[i][len]=='=') { in xsetenv() [all …]
|
| /external/oss-fuzz/infra/cifuzz/ |
| D | config_utils_test.py | 43 os.environ['LANGUAGE'] = language 50 os.environ['SANITIZER'] = 'coverage' 55 os.environ['SANITIZER'] = 'address' 62 os.environ['OSS_FUZZ_PROJECT_NAME'] = 'example' 70 os.environ['OSS_FUZZ_PROJECT_NAME'] = 'example' 71 os.environ['WORKSPACE'] = '/workspace' 72 os.environ['LANGUAGE'] = 'invalid-language' 76 os.environ['LANGUAGE'], constants.LANGUAGES) 81 os.environ['OSS_FUZZ_PROJECT_NAME'] = 'example' 82 os.environ['WORKSPACE'] = '/workspace' [all …]
|
| /external/tensorflow/tensorflow/python/distribute/cluster_resolver/ |
| D | sagemaker_cluster_resolver_test.py | 43 os.environ['SM_HOSTS'] = '["algo-1","algo-2"]' 44 os.environ['SM_CURRENT_HOST'] = 'algo-2' 55 os.environ['SM_HOSTS'] = '["algo-1","algo-2"]' 56 os.environ['SM_CURRENT_HOST'] = 'algo-1' 62 os.environ['SM_HOSTS'] = '["algo-1","algo-2"]' 63 os.environ['SM_CURRENT_HOST'] = 'algo-2' 69 os.environ['SM_HOSTS'] = '["algo-1","algo-2"]' 70 os.environ['SM_CURRENT_HOST'] = 'algo-1' 76 os.environ['SM_HOSTS'] = '["algo-1","algo-2"]' 77 os.environ['SM_CURRENT_HOST'] = 'algo-1' [all …]
|
| /external/ltp/testcases/kernel/syscalls/fork/ |
| D | fork04.c | 11 * This test verifies that parent process shares environ variables with the 12 * child and that child doesn't change parent's environ variables. 28 tst_brk(TBROK, "Can't find %s environ variable", ENV_KEY); in run_child() 31 "%s environ variable has been inherited by the child", in run_child() 34 tst_res(TINFO, "Unset %s environ variable inside child", ENV_KEY); in run_child() 37 tst_brk(TBROK, "Can't unset %s environ variable", ENV_KEY); in run_child() 41 tst_res(TINFO, "Set %s=%s environ variable inside child", ENV_KEY, ENV_VAL1); in run_child() 53 "Set %s=%s environ variable inside parent", in run() 70 "%s environ variable has been unset inside parent", in run() 74 "%s environ variable is still present inside parent", in run() [all …]
|
| /external/python/cpython3/Lib/distutils/ |
| D | sysconfig.py | 127 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 …]
|
| /external/python/setuptools/setuptools/_distutils/ |
| D | sysconfig.py | 31 if "_PYTHON_PROJECT_BASE" in os.environ: 32 project_base = os.path.abspath(os.environ["_PYTHON_PROJECT_BASE"]) 223 if 'CC' in os.environ: 224 newcc = os.environ['CC'] 225 if('LDSHARED' not in os.environ 231 if 'CXX' in os.environ: 232 cxx = os.environ['CXX'] 233 if 'LDSHARED' in os.environ: 234 ldshared = os.environ['LDSHARED'] 235 if 'CPP' in os.environ: [all …]
|
| /external/autotest/cli/ |
| D | rpc_unittest.py | 19 self.old_environ = os.environ.copy() 20 if 'AUTOTEST_WEB' in os.environ: 21 del os.environ['AUTOTEST_WEB'] 25 os.environ.clear() 26 os.environ.update(self.old_environ) 39 os.environ['AUTOTEST_WEB'] = 'foo-dev' 41 del os.environ['AUTOTEST_WEB'] 45 os.environ['AUTOTEST_WEB'] = 'foo-dev' 47 del os.environ['AUTOTEST_WEB']
|
| /external/python/setuptools/setuptools/_distutils/tests/ |
| D | test_sysconfig.py | 131 os.environ['AR'] = 'env_ar' 132 os.environ['CC'] = 'env_cc' 133 os.environ['CPP'] = 'env_cpp' 134 os.environ['CXX'] = 'env_cxx --env-cxx-flags' 135 os.environ['LDSHARED'] = 'env_ldshared' 136 os.environ['LDFLAGS'] = '--env-ldflags' 137 os.environ['ARFLAGS'] = '--env-arflags' 138 os.environ['CFLAGS'] = '--env-cflags' 139 os.environ['CPPFLAGS'] = '--env-cppflags' 140 os.environ['RANLIB'] = 'env_ranlib' [all …]
|
| /external/python/cpython2/Lib/distutils/ |
| D | sysconfig.py | 41 if "_PYTHON_PROJECT_BASE" in os.environ: 43 project_base = os.path.normpath(os.environ["_PYTHON_PROJECT_BASE"]) 179 if 'CC' in os.environ: 180 newcc = os.environ['CC'] 182 and 'LDSHARED' not in os.environ 188 if 'CXX' in os.environ: 189 cxx = os.environ['CXX'] 190 if 'LDSHARED' in os.environ: 191 ldshared = os.environ['LDSHARED'] 192 if 'CPP' in os.environ: [all …]
|
| /external/python/cpython3/Lib/distutils/tests/ |
| D | test_sysconfig.py | 123 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['AR'] [all …]
|
| /external/python/cpython2/Lib/ |
| D | cgi.py | 124 def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0): argument 131 environ : environment dictionary; default: os.environ 146 if not 'REQUEST_METHOD' in environ: 147 environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone 148 if environ['REQUEST_METHOD'] == 'POST': 149 ctype, pdict = parse_header(environ['CONTENT_TYPE']) 153 clength = int(environ['CONTENT_LENGTH']) 159 if 'QUERY_STRING' in environ: 161 qs = qs + environ['QUERY_STRING'] 165 environ['QUERY_STRING'] = qs # XXX Shouldn't, really [all …]
|
| /external/googletest/googlemock/test/ |
| D | gmock_leak_test.py | 41 environ = gmock_test_utils.environ variable 58 TEST_WITH_EXPECT_CALL, env=environ 62 0, gmock_test_utils.Subprocess(TEST_WITH_ON_CALL, env=environ).exit_code 70 env=environ, 76 TEST_WITH_ON_CALL + ['--gmock_catch_leaked_mocks=0'], env=environ 84 TEST_WITH_EXPECT_CALL + ['--gmock_catch_leaked_mocks'], env=environ 90 TEST_WITH_ON_CALL + ['--gmock_catch_leaked_mocks'], env=environ 99 env=environ, 107 TEST_MULTIPLE_LEAKS + ['--gmock_catch_leaked_mocks'], env=environ
|
| /external/cronet/third_party/boringssl/src/third_party/googletest/googlemock/test/ |
| D | gmock_leak_test.py | 41 environ = gmock_test_utils.environ variable 58 TEST_WITH_EXPECT_CALL, env=environ 62 0, gmock_test_utils.Subprocess(TEST_WITH_ON_CALL, env=environ).exit_code 70 env=environ, 76 TEST_WITH_ON_CALL + ['--gmock_catch_leaked_mocks=0'], env=environ 84 TEST_WITH_EXPECT_CALL + ['--gmock_catch_leaked_mocks'], env=environ 90 TEST_WITH_ON_CALL + ['--gmock_catch_leaked_mocks'], env=environ 99 env=environ, 107 TEST_MULTIPLE_LEAKS + ['--gmock_catch_leaked_mocks'], env=environ
|
| /external/cronet/third_party/googletest/src/googlemock/test/ |
| D | gmock_leak_test.py | 41 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).exit_code)
|
| /external/autotest/frontend/ |
| D | frontend.wsgi | 14 os.environ['DJANGO_SETTINGS_MODULE'] = 'frontend.settings' 20 def application(environ, start_response): argument 21 environ['DJANGO_USE_POST_REWRITE'] = 'yes' 22 environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] 23 return _application(environ, start_response)
|
| /external/pigweed/pw_env_setup/py/ |
| D | environment_test.py | 105 os.environ[self.var_already_set] = 'orig value' 106 self.assertIn(self.var_already_set, os.environ) 110 if self.var_not_set in os.environ: 111 del os.environ[self.var_not_set] 112 self.assertNotIn(self.var_not_set, os.environ) 114 self.orig_env = os.environ.copy() 117 self.assertEqual(os.environ, self.orig_env) 183 self.assertNotIn(self.var_not_set, os.environ) 189 self.assertIn(self.var_not_set, os.environ) 274 os.environ[self.var_already_set] = self.pathsep.join( [all …]
|