Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
928051fb
Commit
928051fb
authored
Feb 15, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The "%" character does not need to be escaped in verbatim environments.
This closes SF bug #517811.
parent
7bc6f7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/lib/email.tex
Doc/lib/email.tex
+3
-3
No files found.
Doc/lib/email.tex
View file @
928051fb
...
...
@@ -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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment