summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-02-15 04:12:59 (GMT)
committerFred Drake <fdrake@acm.org>2002-02-15 04:12:59 (GMT)
commit928051fb26f694249c83fd6a0ec1125526799860 (patch)
tree6d80f4ee68a579e947aab8def20537624f967872 /Doc
parent7bc6f7ac7b4339d60c2c50f3d35b6c6d56dbeb01 (diff)
downloadcpython-928051fb26f694249c83fd6a0ec1125526799860.zip
cpython-928051fb26f694249c83fd6a0ec1125526799860.tar.gz
cpython-928051fb26f694249c83fd6a0ec1125526799860.tar.bz2
The "%" character does not need to be escaped in verbatim environments.
This closes SF bug #517811.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/email.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/email.tex b/Doc/lib/email.tex
index 400ea15..a66c8bc 100644
--- a/Doc/lib/email.tex
+++ b/Doc/lib/email.tex
@@ -353,7 +353,7 @@ fp.close()
# me == the sender's email address
# you == the recipient's email address
-msg['Subject'] = 'The contents of \%s' \% textfile
+msg['Subject'] = 'The contents of %s' % textfile
msg['From'] = me
msg['To'] = you
@@ -480,7 +480,7 @@ def main():
# Create the enclosing (outer) message
outer = MIMEBase('multipart', 'mixed')
- outer['Subject'] = 'Contents of directory \%s' \% os.path.abspath(dir)
+ outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)
outer['To'] = sender
outer['From'] = COMMASPACE.join(recips)
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
@@ -617,7 +617,7 @@ def main():
if not ext:
# Use a generic bag-of-bits extension
ext = '.bin'
- filename = 'part-\%03d\%s' \% (counter, ext)
+ filename = 'part-%03d%s' % (counter, ext)
counter += 1
fp = open(os.path.join(dir, filename), 'wb')
fp.write(part.get_payload(decode=1))