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
43dc1fc9
Commit
43dc1fc9
authored
Nov 05, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor grammar and typo fixes
parent
6f97e493
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/lib/email.tex
Doc/lib/email.tex
+2
-2
Doc/lib/emailgenerator.tex
Doc/lib/emailgenerator.tex
+2
-2
Doc/lib/emailmessage.tex
Doc/lib/emailmessage.tex
+1
-1
Doc/lib/emailutil.tex
Doc/lib/emailutil.tex
+1
-1
No files found.
Doc/lib/email.tex
View file @
43dc1fc9
...
@@ -26,7 +26,7 @@ using the \module{email} package deal primarily with objects; you can
...
@@ -26,7 +26,7 @@ using the \module{email} package deal primarily with objects; you can
add sub-objects to messages, remove sub-objects from messages,
add sub-objects to messages, remove sub-objects from messages,
completely re-arrange the contents, etc. There is a separate parser
completely re-arrange the contents, etc. There is a separate parser
and a separate generator which handles the transformation from flat
and a separate generator which handles the transformation from flat
text to the object mod
ule
, and then back to flat text again. There
text to the object mod
el
, and then back to flat text again. There
are also handy subclasses for some common MIME object types, and a few
are also handy subclasses for some common MIME object types, and a few
miscellaneous utilities that help with such common tasks as extracting
miscellaneous utilities that help with such common tasks as extracting
and parsing message field values, creating RFC-compliant dates, etc.
and parsing message field values, creating RFC-compliant dates, etc.
...
@@ -48,7 +48,7 @@ modules that the \module{email} package provides, the exception
...
@@ -48,7 +48,7 @@ modules that the \module{email} package provides, the exception
classes you might encounter while using the
\module
{
email
}
package,
classes you might encounter while using the
\module
{
email
}
package,
some auxiliary utilities, and a few examples. For users of the older
some auxiliary utilities, and a few examples. For users of the older
\module
{
mimelib
}
package, from which the
\module
{
email
}
package is
\module
{
mimelib
}
package, from which the
\module
{
email
}
package is
descende
nt
, a section on differences and porting is provided.
descende
d
, a section on differences and porting is provided.
\subsection
{
Representing an email message
}
\subsection
{
Representing an email message
}
\input
{
emailmessage
}
\input
{
emailmessage
}
...
...
Doc/lib/emailgenerator.tex
View file @
43dc1fc9
...
@@ -15,7 +15,7 @@ generate most email in a standards-compliant way, should handle MIME
...
@@ -15,7 +15,7 @@ generate most email in a standards-compliant way, should handle MIME
and non-MIME email messages just fine, and is designed so that the
and non-MIME email messages just fine, and is designed so that the
transformation from flat text, to an object tree via the
transformation from flat text, to an object tree via the
\class
{
Parser
}
class,
\class
{
Parser
}
class,
and back to flat text,
be
idempotent (the input is identical to the
and back to flat text,
is
idempotent (the input is identical to the
output).
output).
Here are the public methods of the
\class
{
Generator
}
class:
Here are the public methods of the
\class
{
Generator
}
class:
...
@@ -27,7 +27,7 @@ object called \var{outfp} for an argument. \var{outfp} must support
...
@@ -27,7 +27,7 @@ object called \var{outfp} for an argument. \var{outfp} must support
the
\method
{
write()
}
method and be usable as the output file in a
the
\method
{
write()
}
method and be usable as the output file in a
Python 2.0 extended print statement.
Python 2.0 extended print statement.
Optional
\var
{
mangle
_
from
_}
is a flag that, when true, puts a
``>''
Optional
\var
{
mangle
_
from
_}
is a flag that, when true, puts a
\samp
{
>
}
character in front of any line in the body that starts exactly as
character in front of any line in the body that starts exactly as
\samp
{
From
}
(i.e.
\code
{
From
}
followed by a space at the front of the
\samp
{
From
}
(i.e.
\code
{
From
}
followed by a space at the front of the
line). This is the only guaranteed portable way to avoid having such
line). This is the only guaranteed portable way to avoid having such
...
...
Doc/lib/emailmessage.tex
View file @
43dc1fc9
...
@@ -132,7 +132,7 @@ Return the total number of headers, including duplicates.
...
@@ -132,7 +132,7 @@ Return the total number of headers, including duplicates.
\begin{methoddesc}
[Message]
{__
contains
__}{
name
}
\begin{methoddesc}
[Message]
{__
contains
__}{
name
}
Return true if the message object has a field named
\var
{
name
}
.
Return true if the message object has a field named
\var
{
name
}
.
Match is done case-insensitively and
\var
{
name
}
should not include the
Match
ing
is done case-insensitively and
\var
{
name
}
should not include the
trailing colon. Used for the
\code
{
in
}
operator,
trailing colon. Used for the
\code
{
in
}
operator,
e.g.:
e.g.:
...
...
Doc/lib/emailutil.tex
View file @
43dc1fc9
...
@@ -101,7 +101,7 @@ timestamp. It the timezone item in the tuple is \code{None}, assume
...
@@ -101,7 +101,7 @@ timestamp. It the timezone item in the tuple is \code{None}, assume
local time. Minor deficiency:
\function
{
mktime
_
tz()
}
interprets the
local time. Minor deficiency:
\function
{
mktime
_
tz()
}
interprets the
first 8 elements of
\var
{
tuple
}
as a local time and then compensates
first 8 elements of
\var
{
tuple
}
as a local time and then compensates
for the timezone difference. This may yield a slight error around
for the timezone difference. This may yield a slight error around
changes in daylight savings time, though not worth worring about for
changes in daylight savings time, though not worth worr
y
ing about for
common use.
common use.
\end{funcdesc}
\end{funcdesc}
...
...
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