Searched refs:istext (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_binascii.py | 241 self.assertEqual(b2a_qp(type2test(b'x y\tz'), istext=False), 247 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), istext=False), 253 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), istext=False), 259 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), istext=False), 268 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], istext=False), 270 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], istext=False),
|
/external/python/cpython3/Modules/clinic/ |
D | binascii.c.h | 722 int istext, int header); 734 int istext = 1; in binascii_b2a_qp() local 771 istext = _PyLong_AsInt(args[2]); in binascii_b2a_qp() 772 if (istext == -1 && PyErr_Occurred()) { in binascii_b2a_qp() 789 return_value = binascii_b2a_qp_impl(module, &data, quotetabs, istext, header); in binascii_b2a_qp()
|
/external/python/cpython3/Lib/test/ |
D | test_binascii.py | 323 self.assertEqual(b2a_qp(type2test(b'x y\tz'), istext=False), 329 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), istext=False), 335 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), istext=False), 341 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), istext=False), 350 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], istext=False), 352 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], istext=False),
|
/external/python/cpython3/Lib/ |
D | sre_parse.py | 225 self.istext = isinstance(string, str) 227 if not self.istext: 311 elif c == "u" and source.istext: 317 elif c == "U" and source.istext: 325 elif c == "N" and source.istext: 371 elif c == "u" and source.istext: 377 elif c == "U" and source.istext: 385 elif c == "N" and source.istext: 868 if source.istext:
|
/external/python/cpython2/Modules/ |
D | binascii.c | 1296 int istext = 1; in binascii_b2a_qp() local 1304 "etabs, &istext, &header)) in binascii_b2a_qp() 1327 (!istext && ((data[in] == '\r') || (data[in] == '\n'))) || in binascii_b2a_qp() 1346 if (istext && in binascii_b2a_qp() 1407 (!istext && ((data[in] == '\r') || (data[in] == '\n'))) || in binascii_b2a_qp() 1426 if (istext && in binascii_b2a_qp()
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1406 int istext, int header) in binascii_b2a_qp_impl() argument 1440 (!istext && ((databuf[in] == '\r') || (databuf[in] == '\n'))) || in binascii_b2a_qp_impl() 1458 if (istext && in binascii_b2a_qp_impl() 1514 (!istext && ((databuf[in] == '\r') || (databuf[in] == '\n'))) || in binascii_b2a_qp_impl() 1533 if (istext && in binascii_b2a_qp_impl()
|
/external/python/cpython2/Doc/library/ |
D | binascii.rst | 61 .. function:: b2a_qp(data[, quotetabs, istext, header]) 66 optional argument *istext* is present and true, newlines are not encoded but
|
/external/python/cpython3/Doc/library/ |
D | binascii.rst | 76 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) 81 optional argument *istext* is present and true, newlines are not encoded but
|
/external/python/cpython3/Lib/email/ |
D | contentmanager.py | 238 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)
|