Home
last modified time | relevance | path

Searched refs:setdefault (Results 1 – 25 of 170) sorted by relevance

1234567

/third_party/python/Lib/wsgiref/
Dutil.py137 environ.setdefault('SERVER_NAME','127.0.0.1')
138 environ.setdefault('SERVER_PROTOCOL','HTTP/1.0')
140 environ.setdefault('HTTP_HOST',environ['SERVER_NAME'])
141 environ.setdefault('REQUEST_METHOD','GET')
144 environ.setdefault('SCRIPT_NAME','')
145 environ.setdefault('PATH_INFO','/')
147 environ.setdefault('wsgi.version', (1,0))
148 environ.setdefault('wsgi.run_once', 0)
149 environ.setdefault('wsgi.multithread', 0)
150 environ.setdefault('wsgi.multiprocess', 0)
[all …]
/third_party/python/Tools/unicode/
Dgenmap_japanese.py57 m.setdefault((loc >> 8), {})
64 decmap3_pair.setdefault(uniprefix, {})
69 m.setdefault((loc >> 8), {})
96 sjisencmap.setdefault(code >> 8, {})
100 cp932encmap.setdefault(code >> 8, {})
116 jisx0213pairdecmap.setdefault(c1, {})
122 jisx0208_0212encmap.setdefault(code >> 8, {})
127 jisx0208_0212encmap.setdefault(code >> 8, {})
146 jisx0213bmpencmap.setdefault(code >> 8, {})
155 jisx0213bmpencmap.setdefault(code >> 8, {})
[all …]
Dgenmap_korean.py29 ksx1001decmap.setdefault(c1 & 0x7f, {})
31 cp949encmap.setdefault(code >> 8, {})
35 uhcdecmap.setdefault(c1, {})
37 cp949encmap.setdefault(code >> 8, {}) # MSB set
Dgenmap_schinese.py48 m.setdefault(native[0], {})
80 gb2312_gbkencmap.setdefault(code >> 8, {})
84 gb2312_gbkencmap.setdefault(code >> 8, {})
88 gb18030encmap.setdefault(code >> 8, {})
/third_party/node/tools/gyp/pylib/gyp/
DMSVSUtil.py149 msvs = config.setdefault("msvs_settings", {})
246 msvs = config.setdefault("msvs_settings", {})
249 compiler = msvs.setdefault("VCCLCompilerTool", {})
256 msvs = config.setdefault("msvs_settings", {})
257 linker = msvs.setdefault("VCLinkerTool", {})
269 target_dict.setdefault("dependencies", []).append(full_shim_target_name)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
DMSVSUtil.py149 msvs = config.setdefault("msvs_settings", {})
246 msvs = config.setdefault("msvs_settings", {})
249 compiler = msvs.setdefault("VCCLCompilerTool", {})
256 msvs = config.setdefault("msvs_settings", {})
257 linker = msvs.setdefault("VCLinkerTool", {})
269 target_dict.setdefault("dependencies", []).append(full_shim_target_name)
/third_party/PyYAML/tests/lib/
Dtest_emitter.py78 mapping.setdefault('anchor', None)
80 mapping.setdefault('tag', None)
82 mapping.setdefault('implicit', True)
84 mapping.setdefault('implicit', (False, True))
85 mapping.setdefault('value', '')
/third_party/protobuf/python/google/protobuf/internal/
Ddecoder.py219 value = field_dict.setdefault(key, new_default(message))
238 value = field_dict.setdefault(key, new_default(message))
411 value = field_dict.setdefault(key, new_default(message))
464 value = field_dict.setdefault(key, new_default(message))
597 value = field_dict.setdefault(key, new_default(message))
638 value = field_dict.setdefault(key, new_default(message))
680 value = field_dict.setdefault(key, new_default(message))
684 value = field_dict.setdefault(key, new_default(message))
701 value = field_dict.setdefault(key, new_default(message))
725 value = field_dict.setdefault(key, new_default(message))
[all …]
/third_party/node/tools/gyp/pylib/gyp/generator/
Ddump_dependency_json.py48 default_variables.setdefault(key, val)
49 default_variables.setdefault("OS", gyp.common.GetFlavor(params))
Dcompile_commands_json.py41 default_variables.setdefault("OS", gyp.common.GetFlavor(params))
80 commands = per_config_commands.setdefault(configuration_name, [])
Dmake.py69 default_variables.setdefault("OS", "mac")
70 default_variables.setdefault("SHARED_LIB_SUFFIX", ".dylib")
71 default_variables.setdefault(
74 default_variables.setdefault(
99 default_variables.setdefault("OS", operating_system)
101 default_variables.setdefault("SHARED_LIB_SUFFIX", ".a")
103 default_variables.setdefault("SHARED_LIB_SUFFIX", ".x")
105 default_variables.setdefault("SHARED_LIB_SUFFIX", ".so")
106 default_variables.setdefault("SHARED_LIB_DIR", "$(builddir)/lib.$(TOOLSET)")
107 default_variables.setdefault("LIB_DIR", "$(obj).$(TOOLSET)")
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
Ddump_dependency_json.py48 default_variables.setdefault(key, val)
49 default_variables.setdefault("OS", gyp.common.GetFlavor(params))
Dcompile_commands_json.py41 default_variables.setdefault("OS", gyp.common.GetFlavor(params))
80 commands = per_config_commands.setdefault(configuration_name, [])
Dmake.py69 default_variables.setdefault("OS", "mac")
70 default_variables.setdefault("SHARED_LIB_SUFFIX", ".dylib")
71 default_variables.setdefault(
74 default_variables.setdefault(
99 default_variables.setdefault("OS", operating_system)
101 default_variables.setdefault("SHARED_LIB_SUFFIX", ".a")
103 default_variables.setdefault("SHARED_LIB_SUFFIX", ".x")
106 default_variables.setdefault("SHARED_LIB_SUFFIX", ".so")
107 default_variables.setdefault("SHARED_LIB_DIR", "$(builddir)/lib.$(TOOLSET)")
108 default_variables.setdefault("LIB_DIR", "$(obj).$(TOOLSET)")
/third_party/python/Lib/test/
Dmapping_tests.py113 self.assertEqual(d.setdefault(key, knownvalue), value)
115 self.assertEqual(d.setdefault(knownkey, knownvalue), knownvalue)
286 self.assertRaises(TypeError, d.setdefault)
492 self.assertTrue(d.setdefault('key0') is None)
493 d.setdefault('key0', [])
494 self.assertTrue(d.setdefault('key0') is None)
495 d.setdefault('key', []).append(3)
497 d.setdefault('key', []).append(4)
668 self.assertRaises(Exc, d.setdefault, x, [])
Dtest_pwd.py45 entriesbyname.setdefault(e.pw_name, []).append(e)
46 entriesbyuid.setdefault(e.pw_uid, []).append(e)
Dtest_http_cookies.py390 self.assertEqual(morsel.setdefault('expires', 'value'), '')
392 self.assertEqual(morsel.setdefault('Version', 1), 2)
394 self.assertEqual(morsel.setdefault('DOMAIN', 'value'), 'example.com')
398 morsel.setdefault('invalid', 'value')
Dtest_dict_version.py125 self.check_version_changed(d, d.setdefault, 'key', 'value1')
128 self.check_version_dont_change(d, d.setdefault, 'key', 'value2')
/third_party/python/Tools/scripts/
Dgenerate_token.py168 m = chars_to_token.setdefault(len(string), {})
170 m = m.setdefault(c, {})
Dsuff.py15 suffixes.setdefault(suff, []).append(filename)
/third_party/skia/bench/
Dcheck_bench_regressions.py173 exceptions[SLOWER].setdefault(off_ratio, []).append(exception)
175 exceptions[FASTER].setdefault(off_ratio, []).append(exception)
/third_party/node/deps/v8/tools/sanitizers/
Dsancov_merger.py134 file_map.setdefault(match.group(1), []).append(f)
147 file_map.setdefault(executable, []).append(f)
/third_party/node/deps/v8/tools/mb/
Dmb_test.py183 mbw.files.setdefault(mbw.default_config, TEST_CONFIG)
184 mbw.files.setdefault(
192 mbw.files.setdefault(
/third_party/skia/infra/bots/
Drecipes.py97 engine.setdefault('revision', '')
98 engine.setdefault('branch', 'refs/heads/main')
/third_party/gn/infra/
Drecipes.py97 engine.setdefault('revision', '')
98 engine.setdefault('branch', 'refs/heads/main')

1234567