On Sun, 2011-10-16 at 21:46 -0700, Rob Healey wrote: > So when working with python files, why is there no specific mime type for > it? I've also seen some Python scripts have the MIME type "text/x-python;" with others "text/plain." Looking a bit further, there are several lines (14351-14408, the "python: file(1) magic for python" section) in /usr/share/magic that specify several patterns that a Python source file matches, including the "#!/usr/bin/env python" shebang and "from ... import ..." clauses. I'm no MIME expert; but perhaps the reason some of the source files show up as text/plain instead of text/x-python is that they do not match these patterns? I hope someone with more knowledge about this than I can point us in the right direction... -- Peter Gordon (codergeek42) <peter@xxxxxxxxxxxxxxxx> Who am I? :: http://thecodergeek.com/about-me
Attachment:
signature.asc
Description: This is a digitally signed message part
-- test mailing list test@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test