summaryrefslogtreecommitdiffstats
path: root/Lib/dos_8x3/mimetool.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-08 14:13:43 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-08 14:13:43 (GMT)
commitb8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5 (patch)
tree72e5d9cf750cb8eb7f6196db295adabbf126c340 /Lib/dos_8x3/mimetool.py
parent6592f88fc0598aa465f214de0dd4eb5c58229976 (diff)
downloadcpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.zip
cpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.tar.gz
cpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.tar.bz2
The usual... Sigh...
Diffstat (limited to 'Lib/dos_8x3/mimetool.py')
-rwxr-xr-xLib/dos_8x3/mimetool.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/dos_8x3/mimetool.py b/Lib/dos_8x3/mimetool.py
index baf9379..eadc11a 100755
--- a/Lib/dos_8x3/mimetool.py
+++ b/Lib/dos_8x3/mimetool.py
@@ -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'