Home
last modified time | relevance | path

Searched refs:_kwargs (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython2/Lib/bsddb/
Ddbutils.py47 def DeadlockWrap(function, *_args, **_kwargs): argument
63 max_retries = _kwargs.get('max_retries', -1)
64 if 'max_retries' in _kwargs:
65 del _kwargs['max_retries']
68 return function(*_args, **_kwargs)
/external/python/cpython2/Lib/multiprocessing/
Dutil.py186 self._kwargs = kwargs or {}
206 self._callback, self._args, self._kwargs)
207 res = self._callback(*self._args, **self._kwargs)
209 self._kwargs = self._key = None
222 self._kwargs = self._key = None
243 if self._kwargs:
244 x += ', kwargs=' + str(self._kwargs)
Dprocess.py105 self._kwargs = dict(kwargs)
114 self._target(*self._args, **self._kwargs)
133 del self._target, self._args, self._kwargs
/external/python/cpython3/Lib/multiprocessing/
Dutil.py199 self._kwargs = kwargs or {}
223 self._callback, self._args, self._kwargs)
224 res = self._callback(*self._args, **self._kwargs)
226 self._kwargs = self._key = None
239 self._kwargs = self._key = None
261 if self._kwargs:
262 x += ', kwargs=' + str(self._kwargs)
Dprocess.py92 self._kwargs = dict(kwargs)
108 self._target(*self._args, **self._kwargs)
125 del self._target, self._args, self._kwargs
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_test.py28 def RemovePath(self, path, **_kwargs): argument
31 def WriteFile(self, path, contents, **_kwargs): argument
34 def ReadFile(self, path, **_kwargs): argument
/external/python/oauth2client/oauth2client/
Dservice_account.py117 self._kwargs = kwargs
384 payload.update(self._kwargs)
488 **self._kwargs)
507 new_kwargs = dict(self._kwargs)
643 **self._kwargs)
668 payload.update(self._kwargs)
/external/python/cpython3/Lib/
Doperator.py310 self._kwargs = kwargs
313 return getattr(obj, self._name)(*self._args, **self._kwargs)
318 args.extend('%s=%r' % (k, v) for k, v in self._kwargs.items())
324 if not self._kwargs:
328 return partial(self.__class__, self._name, **self._kwargs), self._args
/external/python/markupsafe/src/markupsafe/
D__init__.py197 self._kwargs = kwargs
209 return self._kwargs[key]
212 return iter(self._kwargs)
215 return len(self._kwargs)
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper_test.py152 def read_side_effect(*_args, **_kwargs): argument
158 def select_side_effect(*_args, **_kwargs): argument
169 def time_side_effect(*_args, **_kwargs): argument
172 def poll_side_effect(*_args, **_kwargs): argument
Dreraiser_thread.py67 self._kwargs = kwargs
94 self._ret = self._func(*self._args, **self._kwargs)
/external/libchrome/third_party/jinja2/
Dsandbox.py116 self._kwargs = kwargs
128 return self._kwargs[key]
131 return iter(self._kwargs)
134 return len(self._kwargs)
/external/python/cpython2/Lib/test/
D_mock_backport.py1239 _kwargs = {}
1254 _kwargs['spec'] = spec
1256 _kwargs['spec_set'] = spec_set
1261 _kwargs['name'] = self.attribute
1263 _kwargs.update(kwargs)
1264 new = Klass(**_kwargs)
1276 _kwargs.pop('name')
1278 **_kwargs)
2111 _kwargs = {'spec': spec}
2113 _kwargs = {'spec_set': spec}
[all …]
/external/python/mock/mock/
Dmock.py1419 _kwargs = {}
1434 _kwargs['spec'] = spec
1436 _kwargs['spec_set'] = spec_set
1441 _kwargs['name'] = self.attribute
1443 _kwargs.update(kwargs)
1444 new = Klass(**_kwargs)
1456 _kwargs.pop('name')
1458 **_kwargs)
2340 _kwargs = {'spec': spec}
2342 _kwargs = {'spec_set': spec}
[all …]
/external/python/oauth2client/tests/
Dtest_service_account.py247 self.assertNotIn('sub', creds._kwargs)
249 self.assertEqual(delegated_creds._kwargs['sub'], sub)
251 self.assertNotIn('sub', creds._kwargs)
259 self.assertEqual(creds._kwargs['sub'], sub1)
261 self.assertEqual(delegated_creds._kwargs['sub'], sub2)
263 self.assertEqual(creds._kwargs['sub'], sub1)
Dtest_jwt.py276 self.assertEqual(credentials._kwargs, restored._kwargs)
/external/pdfium/third_party/pymock/
Dmock.py1293 _kwargs = {}
1308 _kwargs['spec'] = spec
1310 _kwargs['spec_set'] = spec_set
1315 _kwargs['name'] = self.attribute
1317 _kwargs.update(kwargs)
1318 new = Klass(**_kwargs)
1330 _kwargs.pop('name')
1332 **_kwargs)
2161 _kwargs = {'spec': spec}
2163 _kwargs = {'spec_set': spec}
[all …]
/external/python/cpython3/Lib/unittest/
Dmock.py1432 _kwargs = {}
1449 _kwargs['spec'] = spec
1451 _kwargs['spec_set'] = spec_set
1456 _kwargs['name'] = self.attribute
1458 _kwargs.update(kwargs)
1459 new = Klass(**_kwargs)
1471 _kwargs.pop('name')
1473 **_kwargs)
2595 _kwargs = {'spec': spec}
2597 _kwargs = {'spec_set': spec}
[all …]
/external/tensorflow/tensorflow/python/training/
Dcoordinator.py453 self._kwargs = kwargs or {}
509 self._target(*self._args, **self._kwargs)
/external/python/oauth2client/oauth2client/contrib/
Dappengine.py147 self._kwargs = kwargs
192 return AppAssertionCredentials(scopes, **self._kwargs)
598 self._kwargs = kwargs
674 revoke_uri=self._revoke_uri, **self._kwargs)
/external/toolchain-utils/cros_utils/
Dlogger.py207 def __init__(self, *_args, **_kwargs): argument
267 def LogMsg(self, _file_fd, _term_fd, msg, **_kwargs): argument
276 def LogCmdToFileOnly(self, *_args, **_kwargs): argument
/external/tensorflow/tensorflow/python/distribute/
Dmulti_process_runner.py217 self._kwargs = kwargs or {}
249 self._kwargs = kwargs or self._kwargs
294 fn, args, kwargs = self._fn, self._args, self._kwargs
401 self._fn(*self._args, **self._kwargs)
/external/toolchain-utils/crosperf/
Dcrosperf_unittest.py81 def mock_RunCrosperf(*_args, **_kwargs): argument
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py35 def write_file(path, contents, **_kwargs): argument
38 def read_file(path, **_kwargs): argument
/external/toolchain-utils/llvm_tools/
Dget_llvm_hash_unittest.py24 def MockPopen(*_args, **_kwargs): argument

12