Home
last modified time | relevance | path

Searched refs:quotetabs (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Lib/
H A Dquopri.py21 def needsquoting(c, quotetabs, header):
24 The 'quotetabs' flag indicates whether embedded tabs and spaces should be
30 return quotetabs
44 def encode(input, output, quotetabs, header=False):
47 'input' and 'output' are binary file objects. The 'quotetabs' flag
55 odata = b2a_qp(data, quotetabs=quotetabs, header=header)
83 if needsquoting(c, quotetabs, header):
106 def encodestring(s, quotetabs=False, header=False):
108 return b2a_qp(s, quotetabs
[all...]
/third_party/python/Lib/test/
H A Dtest_binascii.py319 self.assertEqual(b2a_qp(type2test(b'x y'), header=True, quotetabs=True),
332 self.assertEqual(b2a_qp(type2test(b'\0\n'), quotetabs=True), b'=00\n')
335 self.assertEqual(b2a_qp(type2test(b'x y\tz'), quotetabs=True),
341 self.assertEqual(b2a_qp(type2test(b'x \ny\t\n'), quotetabs=True),
347 self.assertEqual(b2a_qp(type2test(b'x \ry\t\r'), quotetabs=True),
353 self.assertEqual(b2a_qp(type2test(b'x \r\ny\t\r\n'), quotetabs=True),
360 self.assertEqual(b2a_qp(type2test(b'x \r\n')[:-1], quotetabs=True),
362 self.assertEqual(b2a_qp(type2test(b'x\t\r\n')[:-1], quotetabs=True),
H A Dtest_quopri.py67 # used in the "quotetabs=0" tests.
118 # These are used in the "quotetabs=1" tests.
157 quopri.encode(infp, outfp, quotetabs=False)
171 self.assertEqual(quopri.encodestring(p, quotetabs=True), e)
/third_party/python/Modules/clinic/
H A Dbinascii.c.h555 "b2a_qp($module, /, data, quotetabs=False, istext=True, header=False)\n"
562 "are both encoded. When quotetabs is set, space and tabs are encoded.");
568 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs,
575 static const char * const _keywords[] = {"data", "quotetabs", "istext", "header", NULL}; in binascii_b2a_qp()
580 int quotetabs = 0; in binascii_b2a_qp() local
599 quotetabs = _PyLong_AsInt(args[1]); in binascii_b2a_qp()
600 if (quotetabs == -1 && PyErr_Occurred()) { in binascii_b2a_qp()
621 return_value = binascii_b2a_qp_impl(module, &data, quotetabs, istext, header); in binascii_b2a_qp()
/third_party/python/Lib/email/
H A Dencoders.py22 enc = _encodestring(s, quotetabs=True)
H A Dcontentmanager.py240 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)
/third_party/python/Lib/encodings/
H A Dquopri_codec.py14 quopri.encode(f, g, quotetabs=True)
/third_party/python/Modules/
H A Dbinascii.c1054 quotetabs: bool(accept={int}) = False
1062 are both encoded. When quotetabs is set, space and tabs are encoded.
1066 binascii_b2a_qp_impl(PyObject *module, Py_buffer *data, int quotetabs, in binascii_b2a_qp_impl() argument
1105 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl()
1179 (quotetabs || ((databuf[in] != '\t') && (databuf[in] != ' '))))) in binascii_b2a_qp_impl()

Completed in 6 milliseconds