summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-05 05:17:00 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-05 05:17:00 (GMT)
commit2750bcc2d139f95b08693512af4b4ae50c505998 (patch)
tree27d86b7a594505715356cd9a0ddb0347736c33d5
parentb870c752537ebb3e1aad4a8636f962d3b90669eb (diff)
downloadcpython-2750bcc2d139f95b08693512af4b4ae50c505998.zip
cpython-2750bcc2d139f95b08693512af4b4ae50c505998.tar.gz
cpython-2750bcc2d139f95b08693512af4b4ae50c505998.tar.bz2
Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order.
-rw-r--r--Lib/mimetypes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index c4d1860..8f5c076 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',