Searched refs:bytes_warning (Results 1 – 16 of 16) sorted by relevance
/external/python/cpython2/Lib/ |
D | warnings.py | 417 bytes_warning = sys.flags.bytes_warning variable 418 if bytes_warning > 1: 420 elif bytes_warning:
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_case.py | 1148 if sys.flags.bytes_warning: 1149 def bytes_warning(): function 1153 def bytes_warning(): function 1156 with bytes_warning(), self.assertRaises(self.failureException): 1158 with bytes_warning(): 1163 with bytes_warning(), self.assertRaises(self.failureException): 1165 with bytes_warning(), self.assertRaises(self.failureException): 1167 with bytes_warning(), self.assertRaises(self.failureException): 1169 with bytes_warning(), self.assertRaises(self.failureException): 1171 with bytes_warning(), self.assertRaises(self.failureException): [all …]
|
/external/python/cpython3/Python/ |
D | initconfig.c | 627 config->bytes_warning = -1; in _PyConfig_InitCompatConfig() 658 config->bytes_warning = 0; in config_init_defaults() 837 COPY_ATTR(bytes_warning); in _PyConfig_Copy() 940 SET_ITEM_INT(bytes_warning); in config_as_dict() 1049 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_get_global_vars() 1086 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_set_global_vars() 1978 config->bytes_warning++; in config_parse_cmdline() 2216 if (config->bytes_warning) { in config_init_warnoptions() 2218 if (config->bytes_warning> 1) { in config_init_warnoptions() 2561 assert(config->bytes_warning >= 0); in PyConfig_Read()
|
D | sysmodule.c | 2482 SetFlag(config->bytes_warning); in make_flags()
|
/external/python/cpython3/Lib/test/ |
D | test_bytes.py | 25 if sys.flags.bytes_warning: 1768 @unittest.skipUnless(sys.flags.bytes_warning, 1771 def bytes_warning(): function 1773 with bytes_warning(): 1775 with bytes_warning(): 1777 with bytes_warning(): 1779 with bytes_warning(): 1781 with bytes_warning(): 1783 with bytes_warning(): 1785 with bytes_warning(): [all …]
|
/external/python/cpython3/Include/cpython/ |
D | initconfig.h | 244 int bytes_warning; member
|
/external/python/cpython3/Lib/ |
D | subprocess.py | 312 bytes_warning = sys.flags.bytes_warning 316 if bytes_warning > 1: 318 elif bytes_warning:
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 566 config.bytes_warning = 1; in test_init_from_config() 1491 config.bytes_warning = 1; in test_init_warnoptions()
|
/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 999 if (_Py_GetConfig()->bytes_warning) { in bytearray_str() 1024 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
|
D | bytesobject.c | 1344 if (_Py_GetConfig()->bytes_warning) { in bytes_str() 1501 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b1.rst | 115 sys.flags was not properly exposing its bytes_warning attribute.
|
/external/python/cpython2/Lib/test/ |
D | test_bytes.py | 19 if sys.flags.bytes_warning:
|
/external/python/cpython3/Doc/c-api/ |
D | init_config.rst | 455 .. c:member:: int bytes_warning
|
/external/python/cpython2/Doc/library/ |
D | sys.rst | 287 :const:`bytes_warning` :option:`-b`
|
/external/python/cpython3/Doc/library/ |
D | sys.rst | 461 :const:`bytes_warning` :option:`-b`
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.2.rst | 493 ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)
|