Home
last modified time | relevance | path

Searched refs:b2a_qp (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_binascii.py181 b2a_qp = binascii.b2a_qp
209 self.assertRaises(TypeError, b2a_qp, foo="bar")
211 self.assertEqual(b2a_qp(type2test(b"\xff\r\n\xff\n\xff")),
213 self.assertEqual(b2a_qp(type2test(b"0"*75+b"\xff\r\n\xff\r\n\xff")),
216 self.assertEqual(b2a_qp(type2test(b'\x7f')), b'=7F')
217 self.assertEqual(b2a_qp(type2test(b'=')), b'=3D')
219 self.assertEqual(b2a_qp(type2test(b'_')), b'_')
220 self.assertEqual(b2a_qp(type2test(b'_'), header=True), b'=5F')
221 self.assertEqual(b2a_qp(type2test(b'x y'), header=True), b'x_y')
222 self.assertEqual(b2a_qp(type2test(b'x '), header=True), b'x=20')
[all …]
Dtest_quopri.py52 if quopri.b2a_qp is not None or quopri.a2b_qp is not None:
53 oldencode = quopri.b2a_qp
56 quopri.b2a_qp = None
60 quopri.b2a_qp = oldencode
/external/python/cpython3/Lib/test/
Dtest_binascii.py263 b2a_qp = binascii.b2a_qp
291 self.assertRaises(TypeError, b2a_qp, foo="bar")
293 self.assertEqual(b2a_qp(type2test(b"\xff\r\n\xff\n\xff")),
295 self.assertEqual(b2a_qp(type2test(b"0"*75+b"\xff\r\n\xff\r\n\xff")),
298 self.assertEqual(b2a_qp(type2test(b'\x7f')), b'=7F')
299 self.assertEqual(b2a_qp(type2test(b'=')), b'=3D')
301 self.assertEqual(b2a_qp(type2test(b'_')), b'_')
302 self.assertEqual(b2a_qp(type2test(b'_'), header=True), b'=5F')
303 self.assertEqual(b2a_qp(type2test(b'x y'), header=True), b'x_y')
304 self.assertEqual(b2a_qp(type2test(b'x '), header=True), b'x=20')
[all …]
Dtest_quopri.py51 if quopri.b2a_qp is not None or quopri.a2b_qp is not None:
52 oldencode = quopri.b2a_qp
55 quopri.b2a_qp = None
59 quopri.b2a_qp = oldencode
/external/python/cpython2/Lib/
Dquopri.py15 from binascii import a2b_qp, b2a_qp
18 b2a_qp = None variable
53 if b2a_qp is not None:
55 odata = b2a_qp(data, quotetabs = quotetabs, header = header)
106 if b2a_qp is not None:
107 return b2a_qp(s, quotetabs = quotetabs, header = header)
/external/python/cpython3/Lib/
Dquopri.py15 from binascii import a2b_qp, b2a_qp
18 b2a_qp = None variable
53 if b2a_qp is not None:
55 odata = b2a_qp(data, quotetabs=quotetabs, header=header)
107 if b2a_qp is not None:
108 return b2a_qp(s, quotetabs=quotetabs, header=header)
/external/python/cpython3/Lib/email/
Dcontentmanager.py238 data = binascii.b2a_qp(data, istext=False, header=False, quotetabs=True)
/external/python/cpython2/Doc/library/
Dbinascii.rst61 .. function:: b2a_qp(data[, quotetabs, istext, header])
/external/python/cpython3/Doc/library/
Dbinascii.rst76 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
/external/python/cpython2/Misc/NEWS.d/
D2.7.13rc1.rst386 Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
562 Fix possible integer overflow in binascii.b2a_qp.
D2.6a1.rst4230 binascii.b2a_qp() now correctly quotes binary characters with ASCII value
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a4.rst344 Fix possible integer overflow in binascii.b2a_qp.
D3.6.0b2.rst578 Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
D3.5.3rc1.rst879 Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
1214 Fix possible integer overflow in binascii.b2a_qp.
D3.7.0a1.rst4571 Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
/external/python/cpython3/Misc/
DHISTORY46 - Issue #27760: Fix possible integer overflow in binascii.b2a_qp.
23874 - binascii has now two quopri support functions, a2b_qp and b2a_qp.
/external/python/cpython2/Misc/
DHISTORY6495 - binascii has now two quopri support functions, a2b_qp and b2a_qp.