Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add magic for python 3.10 and 3.11 bytecodes (Lucinda May Phipps)
  • Loading branch information
zoulasc committed Oct 20, 2021
1 parent 504206e commit 9e23d4d
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion magic/Magdir/python
@@ -1,13 +1,14 @@

#------------------------------------------------------------------------------
# $File: python,v 1.43 2021/05/25 15:12:03 christos Exp $
# $File: python,v 1.44 2021/10/20 11:15:35 christos Exp $
# python: file(1) magic for python
#
# Outlook puts """ too for urgent messages
# From: David Necas <yeti@physics.muni.cz>
# often the module starts with a multiline string
0 string/t """ Python script text executable
# MAGIC as specified in Python/import.c (1.0 to 3.7)
# and in Lib/importlib/_bootstrap_external.py (3.5+)
# two bytes of magic followed by "\r\n" in little endian order
0 belong 0x02099900 python 1.0 byte-compiled
!:mime application/x-bytecode.python
Expand Down Expand Up @@ -215,6 +216,50 @@
!:mime application/x-bytecode.python
0 belong 0x610d0d0a python 3.9 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x660d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x670d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x680d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x690d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6a0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6b0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6c0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6d0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6e0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x6f0d0d0a python 3.10 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7a0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7b0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7c0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7d0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7e0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x7f0d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x800d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x810d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x820d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x830d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x840d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python
0 belong 0x850d0d0a python 3.11 byte-compiled
!:mime application/x-bytecode.python

0 search/1/w #!\040/usr/bin/python Python script text executable
!:strength + 15
Expand Down

0 comments on commit 9e23d4d

Please sign in to comment.