[pypy-svn] r16674 - pypy/dist/pypy/lib
jacob at codespeak.net
jacob at codespeak.net
Fri Aug 26 20:03:38 CEST 2005
Author: jacob
Date: Fri Aug 26 20:03:36 2005
New Revision: 16674
Modified:
pypy/dist/pypy/lib/binascii.py
Log:
Fixed minor problem with soft linebreaks in qp.
Modified: pypy/dist/pypy/lib/binascii.py
==============================================================================
--- pypy/dist/pypy/lib/binascii.py (original)
+++ pypy/dist/pypy/lib/binascii.py Fri Aug 26 20:03:36 2005
@@ -255,10 +255,6 @@
istext=False means that \r and \n are treated as regular characters
header=True encodes space characters with '_' and requires
real '_' characters to be quoted.
-
-
- The CPython does not encode newlines as CRLF sequences. This
- seems to be non-standard, and we copy this behaviour.
"""
crlf = s.find('\r\n')
lf = s.find('\n')
@@ -278,8 +274,7 @@
lines = s.split('\n')
- soft_lbr = '=\n' # The way CPython does it
- #soft_lbr = '=\r\n' # The way I think the standard specifies
+ soft_lbr = '=' + linebreak
result = []
for line in lines:
charlist = []
More information about the Pypy-commit
mailing list