Home
last modified time | relevance | path

Searched refs:_set_bool (Results 1 – 4 of 4) sorted by relevance

/external/autotest/client/common_lib/
Dcontrol_data_unittest.py229 cd._set_bool('foo', 'False')
231 cd._set_bool('foo', True)
233 cd._set_bool('foo', 'FALSE')
235 cd._set_bool('foo', 'true')
237 self.assertRaises(ValueError, cd._set_bool, 'foo', '')
238 self.assertRaises(ValueError, cd._set_bool, 'foo', 1)
239 self.assertRaises(ValueError, cd._set_bool, 'foo', [])
240 self.assertRaises(ValueError, cd._set_bool, 'foo', None)
Dcontrol_data.py192 def _set_bool(self, attr, val): member in ControlData
238 self._set_bool('run_verify', val)
279 self._set_bool('require_ssp', val)
297 self._set_bool('fast', val)
/external/python/cpython2/Modules/
D_csv.c207 _set_bool(const char *name, int *target, PyObject *src, int dflt) in _set_bool() function
425 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, 1); in dialect_new()
430 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, 0); in dialect_new()
431 DIASET(_set_bool, "strict", &self->strict, strict, 0); in dialect_new()
/external/python/cpython3/Modules/
D_csv.c199 _set_bool(const char *name, char *target, PyObject *src, bool dflt) in _set_bool() function
421 DIASET(_set_bool, "doublequote", &self->doublequote, doublequote, true); in dialect_new()
426 DIASET(_set_bool, "skipinitialspace", &self->skipinitialspace, skipinitialspace, false); in dialect_new()
427 DIASET(_set_bool, "strict", &self->strict, strict, false); in dialect_new()