Deleted Added
full compact
python (275698) python (288143)
1
2#------------------------------------------------------------------------------
1
2#------------------------------------------------------------------------------
3# $File: python,v 1.26 2014/08/04 05:58:40 christos Exp $
3# $File: python,v 1.27 2015/09/08 13:59:44 christos Exp $
4# python: file(1) magic for python
5#
6# Outlook puts """ too for urgent messages
7# From: David Necas <yeti@physics.muni.cz>
8# often the module starts with a multiline string
90 string/t """ Python script text executable
10# MAGIC as specified in Python/import.c (1.5 to 2.7a0 and 3.1a0, assuming
11# that Py_UnicodeFlag is off for Python 2)

--- 9 unchanged lines hidden (view full) ---

210 belong 0x03f30d0a python 2.7 byte-compiled
220 belong 0x3b0c0d0a python 3.0 byte-compiled
230 belong 0x4f0c0d0a python 3.1 byte-compiled
240 belong 0x6c0c0d0a python 3.2 byte-compiled
250 belong 0x9e0c0d0a python 3.3 byte-compiled
260 belong 0xee0c0d0a python 3.4 byte-compiled
27
280 search/1/w #!\ /usr/bin/python Python script text executable
4# python: file(1) magic for python
5#
6# Outlook puts """ too for urgent messages
7# From: David Necas <yeti@physics.muni.cz>
8# often the module starts with a multiline string
90 string/t """ Python script text executable
10# MAGIC as specified in Python/import.c (1.5 to 2.7a0 and 3.1a0, assuming
11# that Py_UnicodeFlag is off for Python 2)

--- 9 unchanged lines hidden (view full) ---

210 belong 0x03f30d0a python 2.7 byte-compiled
220 belong 0x3b0c0d0a python 3.0 byte-compiled
230 belong 0x4f0c0d0a python 3.1 byte-compiled
240 belong 0x6c0c0d0a python 3.2 byte-compiled
250 belong 0x9e0c0d0a python 3.3 byte-compiled
260 belong 0xee0c0d0a python 3.4 byte-compiled
27
280 search/1/w #!\ /usr/bin/python Python script text executable
29!:strength + 10
29!:mime text/x-python
300 search/1/w #!\ /usr/local/bin/python Python script text executable
30!:mime text/x-python
310 search/1/w #!\ /usr/local/bin/python Python script text executable
32!:strength + 10
31!:mime text/x-python
320 search/1 #!/usr/bin/env\ python Python script text executable
33!:mime text/x-python
340 search/1 #!/usr/bin/env\ python Python script text executable
35!:strength + 10
33!:mime text/x-python
36!:mime text/x-python
340 search/1 #!\ /usr/bin/env\ python Python script text executable
370 search/10 #!\ /usr/bin/env\ python Python script text executable
38!:strength + 10
35!:mime text/x-python
36
37
38# from module.submodule import func1, func2
390 regex \^from\\s+(\\w|\\.)+\\s+import.*$ Python script text executable
40!:mime text/x-python
41
42# def __init__ (self, ...):

--- 26 unchanged lines hidden ---
39!:mime text/x-python
40
41
42# from module.submodule import func1, func2
430 regex \^from\\s+(\\w|\\.)+\\s+import.*$ Python script text executable
44!:mime text/x-python
45
46# def __init__ (self, ...):

--- 26 unchanged lines hidden ---