summaryrefslogtreecommitdiff
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-05 05:17:00 +0000
committerMartin v. Löwis <martin@v.loewis.de>2001-06-05 05:17:00 +0000
commitc6e34aea2e7aabf40d894adc32ac850dce8af9e8 (patch)
treea448f01589f7a5cfdfd2eb2d7ab12f4939d3c8c1 /Lib/mimetypes.py
parent05607de5ae1f3a48b95afeefbc6bef320ab47f4f (diff)
downloadcpython-c6e34aea2e7aabf40d894adc32ac850dce8af9e8.tar.gz
Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order.
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r--Lib/mimetypes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index c4d1860bbe..8f5c076c05 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -197,9 +197,10 @@ types_map = {
'.pnm': 'image/x-portable-anymap',
'.png': 'image/png',
'.ppm': 'image/x-portable-pixmap',
+ '.ps': 'application/postscript',
'.py': 'text/x-python',
'.pyc': 'application/x-python-code',
- '.ps': 'application/postscript',
+ '.pyo': 'application/x-python-code',
'.qt': 'video/quicktime',
'.ras': 'image/x-cmu-raster',
'.rgb': 'image/x-rgb',