martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.25k stars 258 forks source link

Fix Python MIME for filetype detection #1009

Closed ilyagr closed 2 years ago

ilyagr commented 2 years ago

On my machine (Linux, file 5.39), the MIME type file returns for Python files is text/x-script.python, not text/x-python.

ilyagr commented 2 years ago

I think my system's magic file gets this from https://github.com/file/file/blob/a6de062b431e1fd1b69bd07d99d157bf73dff460/magic/Magdir/python#L266.

ninewise commented 2 years ago

Duplicate of a sourcehut patch, now applied 336f66c