[Python-checkins] CVS: python/dist/src/Lib quopri.py,1.17,1.18
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 15 Oct 2001 11:44:03 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14343
Modified Files:
quopri.py
Log Message:
Patch 471400: escape single-dot lines; by Jason Hildebrand.
RFC 2049 recommends never outputting a line consisting of a single
dot.
Index: quopri.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/quopri.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** quopri.py 2001/10/04 05:36:56 1.17
--- quopri.py 2001/10/15 18:44:01 1.18
***************
*** 62,65 ****
--- 62,67 ----
if s and s[-1:] in ' \t':
output.write(s[:-1] + quote(s[-1]) + lineEnd)
+ elif s == '.':
+ output.write(quote(s) + lineEnd)
else:
output.write(s + lineEnd)