mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
The usual... Sigh...
This commit is contained in:
parent
6592f88fc0
commit
b8cc6ae5a1
10 changed files with 34 additions and 14 deletions
|
@ -67,6 +67,14 @@ class Message(rfc822.Message):
|
|||
return rfc822.unquote(p[n:])
|
||||
return None
|
||||
|
||||
def getparamnames(self):
|
||||
result = []
|
||||
for p in self.plist:
|
||||
i = string.find(p, '=')
|
||||
if i >= 0:
|
||||
result.append(string.lower(p[:i]))
|
||||
return result
|
||||
|
||||
def getencoding(self):
|
||||
if self.encodingheader == None:
|
||||
return '7bit'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue