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
4aa12866
Commit
4aa12866
authored
Sep 26, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
__init__(): Arguments major renamed to maintype and minor renamed to
subtype for consistency with the rest of the package.
parent
a1ca3869
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/email/MIMEBase.py
Lib/email/MIMEBase.py
+3
-3
No files found.
Lib/email/MIMEBase.py
View file @
4aa12866
...
...
@@ -11,14 +11,14 @@ import Message
class
MIMEBase
(
Message
.
Message
):
"""Base class for MIME specializations."""
def
__init__
(
self
,
_ma
jor
,
_minor
,
**
_params
):
def
__init__
(
self
,
_ma
intype
,
_subtype
,
**
_params
):
"""This constructor adds a Content-Type: and a MIME-Version: header.
The Content-Type: header is taken from the _ma
jor and _minor
The Content-Type: header is taken from the _ma
intype and _subtype
arguments. Additional parameters for this header are taken from the
keyword arguments.
"""
Message
.
Message
.
__init__
(
self
)
ctype
=
'%s/%s'
%
(
_ma
jor
,
_minor
)
ctype
=
'%s/%s'
%
(
_ma
intype
,
_subtype
)
self
.
add_header
(
'Content-Type'
,
ctype
,
**
_params
)
self
[
'MIME-Version'
]
=
'1.0'
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