/external/python/cpython2/Lib/ |
D | quopri.py | 21 def needsquoting(c, quotetabs, header): argument 29 return quotetabs 42 def encode(input, output, quotetabs, header = 0): argument 55 odata = b2a_qp(data, quotetabs = quotetabs, header = header) 82 if needsquoting(c, quotetabs, header): 105 def encodestring(s, quotetabs = 0, header = 0): argument 107 return b2a_qp(s, quotetabs = quotetabs, header = header) 111 encode(infp, outfp, quotetabs, header)
|
/external/python/cpython3/Lib/ |
D | quopri.py | 21 def needsquoting(c, quotetabs, header): argument 30 return quotetabs 44 def encode(input, output, quotetabs, header=False): argument 55 odata = b2a_qp(data, quotetabs=quotetabs, header=header) 83 if needsquoting(c, quotetabs, header): 106 def encodestring(s, quotetabs=False, header=False): argument 108 return b2a_qp(s, quotetabs=quotetabs, header=header) 112 encode(infp, outfp, quotetabs, header)
|
/external/python/cpython2/Doc/library/ |
D | quopri.rst | 35 .. function:: encode(input, output, quotetabs) 40 ``input.readline()`` returns an empty string. *quotetabs* is a flag which 52 .. function:: encodestring(s[, quotetabs]) 55 corresponding encoded string. *quotetabs* is optional (defaulting to 0), and is
|
D | binascii.rst | 61 .. function:: b2a_qp(data[, quotetabs, istext, header]) 65 *quotetabs* is present and true, all tabs and spaces will be encoded. If the
|
D | codecs.rst | 1212 | | quotedprintable | quoted printable | ``quotetabs=True``, …
|
/external/python/cpython3/Doc/library/ |
D | quopri.rst | 33 .. function:: encode(input, output, quotetabs, header=False) 37 :term:`binary file objects <file object>`. *quotetabs*, a 52 .. function:: encodestring(s, quotetabs=False, header=False) 56 ``False`` value to *quotetabs* parameter of the :func:`encode` function.
|
D | binascii.rst | 76 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) 80 *quotetabs* is present and true, all tabs and spaces will be encoded. If the
|
D | codecs.rst | 1358 | | quotedprintable, | quoted printable. | ``quotetabs=True`` / …
|
/external/python/cpython2/Lib/test/ |
D | test_binascii.py | 223 self.assertEqual(b2a_qp(type2test(b'x y'), header=True, quotetabs=True), 236 self.assertEqual(b2a_qp(type2test(b'\0\n'), quotetabs=True), b'=00\n') 239 self.assertEqual(b2a_qp(type2test(b'x y\tz'), quotetabs=True), 245 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), quotetabs=True), 251 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), quotetabs=True), 257 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), quotetabs=True), 264 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], quotetabs=True), 266 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], quotetabs=True),
|
D | test_quopri.py | 150 quopri.encode(infp, outfp, quotetabs=False) 164 self.assertTrue(quopri.encodestring(p, quotetabs=True) == e)
|
/external/python/cpython3/Lib/test/ |
D | test_binascii.py | 305 self.assertEqual(b2a_qp(type2test(b'x y'), header=True, quotetabs=True), 318 self.assertEqual(b2a_qp(type2test(b'\0\n'), quotetabs=True), b'=00\n') 321 self.assertEqual(b2a_qp(type2test(b'x y\tz'), quotetabs=True), 327 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), quotetabs=True), 333 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), quotetabs=True), 339 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), quotetabs=True), 346 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], quotetabs=True), 348 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], quotetabs=True),
|
D | test_quopri.py | 156 quopri.encode(infp, outfp, quotetabs=False) 170 self.assertEqual(quopri.encodestring(p, quotetabs=True), e)
|
/external/python/cpython3/Modules/clinic/ |
D | binascii.c.h | 721 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, 733 int quotetabs = 0; in binascii_b2a_qp() local 757 quotetabs = _PyLong_AsInt(args[1]); in binascii_b2a_qp() 758 if (quotetabs == -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/email/ |
D | encoders.py | 21 enc = _encodestring(s, quotetabs=True)
|
D | contentmanager.py | 238 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)
|
/external/python/cpython2/Lib/email/ |
D | encoders.py | 21 enc = _encodestring(s, quotetabs=True)
|
/external/python/cpython3/Lib/encodings/ |
D | quopri_codec.py | 14 quopri.encode(f, g, quotetabs=True)
|
/external/python/cpython2/Lib/encodings/ |
D | quopri_codec.py | 24 quopri.encode(f, g, quotetabs=True)
|
/external/python/cpython2/Modules/ |
D | binascii.c | 1297 int quotetabs = 0; in binascii_b2a_qp() local 1304 "etabs, &istext, &header)) in binascii_b2a_qp() 1331 (quotetabs || in binascii_b2a_qp() 1332 (!quotetabs && ((data[in] != '\t') && (data[in] != ' ')))))) in binascii_b2a_qp() 1411 (quotetabs || ((data[in] != '\t') && (data[in] != ' '))))) in binascii_b2a_qp()
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1405 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, in binascii_b2a_qp_impl() argument 1444 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl() 1518 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl()
|