summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-11-16 17:08:45 (GMT)
committerGeorg Brandl <georg@python.org>2006-11-16 17:08:45 (GMT)
commit25aabf4cbb7ff8d1a38f8ef4602a409c00474a30 (patch)
tree507c752da3d870c6e4effd4cbae4f9df9ec287da /Modules
parent540821183b0a6105d5cf262db837332b14e0e259 (diff)
downloadcpython-25aabf4cbb7ff8d1a38f8ef4602a409c00474a30.zip
cpython-25aabf4cbb7ff8d1a38f8ef4602a409c00474a30.tar.gz
cpython-25aabf4cbb7ff8d1a38f8ef4602a409c00474a30.tar.bz2
Bug #1588217: don't parse "= " as a soft line break in binascii's
a2b_qp() function, instead leave it in the string as quopri.decode() does.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/binascii.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 3b2c8b2..4dee451 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -1057,8 +1057,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
in++;
if (in >= datalen) break;
/* Soft line breaks */
- if ((data[in] == '\n') || (data[in] == '\r') ||
- (data[in] == ' ') || (data[in] == '\t')) {
+ if ((data[in] == '\n') || (data[in] == '\r')) {
if (data[in] != '\n') {
while (in < datalen && data[in] != '\n') in++;
}