Home
last modified time | relevance | path

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

12345678910>>...12

/external/python/cpython3/Lib/wsgiref/
Dutil.py130 environ.setdefault('SERVER_NAME','127.0.0.1')
131 environ.setdefault('SERVER_PROTOCOL','HTTP/1.0')
133 environ.setdefault('HTTP_HOST',environ['SERVER_NAME'])
134 environ.setdefault('REQUEST_METHOD','GET')
137 environ.setdefault('SCRIPT_NAME','')
138 environ.setdefault('PATH_INFO','/')
140 environ.setdefault('wsgi.version', (1,0))
141 environ.setdefault('wsgi.run_once', 0)
142 environ.setdefault('wsgi.multithread', 0)
143 environ.setdefault('wsgi.multiprocess', 0)
[all …]
/external/python/cpython2/Lib/wsgiref/
Dutil.py130 environ.setdefault('SERVER_NAME','127.0.0.1')
131 environ.setdefault('SERVER_PROTOCOL','HTTP/1.0')
133 environ.setdefault('HTTP_HOST',environ['SERVER_NAME'])
134 environ.setdefault('REQUEST_METHOD','GET')
137 environ.setdefault('SCRIPT_NAME','')
138 environ.setdefault('PATH_INFO','/')
140 environ.setdefault('wsgi.version', (1,0))
141 environ.setdefault('wsgi.run_once', 0)
142 environ.setdefault('wsgi.multithread', 0)
143 environ.setdefault('wsgi.multiprocess', 0)
[all …]
/external/protobuf/python/google/protobuf/internal/
Ddecoder.py205 value = field_dict.setdefault(key, new_default(message))
224 value = field_dict.setdefault(key, new_default(message))
360 value = field_dict.setdefault(key, new_default(message))
391 value = field_dict.setdefault(key, new_default(message))
483 value = field_dict.setdefault(key, new_default(message))
520 value = field_dict.setdefault(key, new_default(message))
559 value = field_dict.setdefault(key, new_default(message))
563 value = field_dict.setdefault(key, new_default(message))
580 value = field_dict.setdefault(key, new_default(message))
604 value = field_dict.setdefault(key, new_default(message))
[all …]
/external/ipsec-tools/src/racoon/
Dlocalconf.c68 static void setdefault __P((void));
77 setdefault(); in initlcconf()
87 setdefault(); in flushlcconf()
103 setdefault() in setdefault() function
/external/google-benchmark/
Dmingw.py73 version = versions.setdefault(version, {})
79 arch = version.setdefault(arch, {})
80 threading = arch.setdefault(value[2].strip(), {})
81 exceptions = threading.setdefault(value[3].strip(), {})
82 revision = exceptions.setdefault(int(value[4].strip()[3:]),
/external/libcxx/utils/google-benchmark/
Dmingw.py73 version = versions.setdefault(version, {})
79 arch = version.setdefault(arch, {})
80 threading = arch.setdefault(value[2].strip(), {})
81 exceptions = threading.setdefault(value[3].strip(), {})
82 revision = exceptions.setdefault(int(value[4].strip()[3:]),
/external/python/cpython2/Lib/test/
Dtest_rfc822.py29 self.assertTrue(msg.setdefault("New-Header", "New-Value") == "New-Value")
30 self.assertTrue(msg.setdefault("New-Header", "Different-Value")
34 self.assertTrue(msg.setdefault("Another-Header") == "")
Dmapping_tests.py117 self.assertEqual(d.setdefault(key, knownvalue), value)
119 self.assertEqual(d.setdefault(knownkey, knownvalue), knownvalue)
293 self.assertRaises(TypeError, d.setdefault)
511 self.assertTrue(d.setdefault('key0') is None)
512 d.setdefault('key0', [])
513 self.assertTrue(d.setdefault('key0') is None)
514 d.setdefault('key', []).append(3)
516 d.setdefault('key', []).append(4)
695 self.assertRaises(Exc, d.setdefault, x, [])
Dtest_dict.py289 self.assertIs(d.setdefault('key0'), None)
290 d.setdefault('key0', [])
291 self.assertIs(d.setdefault('key0'), None)
292 d.setdefault('key', []).append(3)
294 d.setdefault('key', []).append(4)
296 self.assertRaises(TypeError, d.setdefault)
311 self.assertRaises(Exc, d.setdefault, x, [])
328 y.setdefault(hashed2, [])
Dtest_pwd.py44 entriesbyname.setdefault(e.pw_name, []).append(e)
45 entriesbyuid.setdefault(e.pw_uid, []).append(e)
/external/python/dateutil/dateutil/tz/
D_factories.py32 instance = cls.__instances.setdefault(key,
46 instance = cls.__instances.setdefault(key,
/external/python/httplib2/tests/
D__init__.py393 headers.setdefault("content-length", str(len(body)))
395 headers.setdefault("date", email.utils.formatdate())
397 headers.setdefault("etag", '"{0}"'.format(hashlib.md5(body).hexdigest()))
457 kwargs.setdefault("request_count", len(responses))
528 kwargs.setdefault("body", b"nonce stale")
540 kwargs.setdefault("status", 401)
544 kwargs.setdefault("body", b"HTTP authorization required")
/external/python/setuptools/
Dsetup.py72 package_data.setdefault('setuptools', []).extend(['*.exe'])
73 package_data.setdefault('setuptools.command', []).extend(['*.xml'])
/external/python/cpython3/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)
666 self.assertRaises(Exc, d.setdefault, x, [])
Dtest_pwd.py45 entriesbyname.setdefault(e.pw_name, []).append(e)
46 entriesbyuid.setdefault(e.pw_uid, []).append(e)
/external/autotest/server/site_tests/security_kASLR/
Dsecurity_kASLR.py55 symbols.setdefault(symbol, addr)
96 address_count.setdefault(addr, 0)
/external/autotest/frontend/tko/
Drpc_interface.py241 summary = summaries.setdefault(result['job_name'], {})
267 summary = summaries.setdefault(job_name, {})
295 host_info.setdefault(hostname, {})
296 host_info[hostname].setdefault('tests', [])
/external/tensorflow/tensorflow/contrib/boosted_trees/python/ops/
Dbatch_ops_utils.py94 grouped_args.setdefault(key, []).append(op.args[key])
112 batched_ops.setdefault(key, []).append(op)
/external/scapy/scapy/
Dansmachine.py42 kargs.setdefault("filter",self.filter)
43 kargs.setdefault("prn", self.reply)
/external/skqp/infra/bots/
Drecipes.py82 engine.setdefault('revision', '')
83 engine.setdefault('branch', 'refs/heads/master')
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Ddata.py123 tmap.setdefault(_posixpath.join(*target), []).append(fname)
155 mpmap.setdefault(ext, []).append(manpage)
/external/skia/infra/bots/
Drecipes.py85 engine.setdefault('revision', '')
86 engine.setdefault('branch', 'refs/heads/master')
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Ddata.py123 tmap.setdefault(_posixpath.join(*target), []).append(fname)
155 mpmap.setdefault(ext, []).append(manpage)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Ddata.py123 tmap.setdefault(_posixpath.join(*target), []).append(fname)
155 mpmap.setdefault(ext, []).append(manpage)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Ddata.py123 tmap.setdefault(_posixpath.join(*target), []).append(fname)
155 mpmap.setdefault(ext, []).append(manpage)

12345678910>>...12