Package: file Version: 1:5.24-1 "file --mime-type" recognizes Python scripts as text/plain:
$ echo '#!/usr/bin/python' > pyscript $ file --mime-type pyscript pyscript: text/plain ... instead of text/x-python, as it used to in 1:5.22+15-2: $ file --mime-type pyscript pyscript: text/x-python See bug #791722 for context. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 4.1.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages file depends on: ii libc6 2.19-19 ii libmagic1 1:5.24-1 ii zlib1g 1:1.2.8.dfsg-2+b1 -- Jakub Wilk