]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 5 Jun 2001 05:17:00 +0000 (05:17 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 5 Jun 2001 05:17:00 +0000 (05:17 +0000)
Lib/mimetypes.py

index c4d1860bbed6b80ccd6ec455103204267ce6ec28..8f5c076c0525c5a71173643e7076305c8748f5c0 100644 (file)
@@ -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',