The usual... Sigh...

This commit is contained in:
Guido van Rossum 1996-10-08 14:13:43 +00:00
parent 6592f88fc0
commit b8cc6ae5a1
10 changed files with 34 additions and 14 deletions

View file

@ -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'