diff options
Diffstat (limited to 'magic/Magdir/python')
| -rw-r--r-- | magic/Magdir/python | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/magic/Magdir/python b/magic/Magdir/python index f21ff659b453..acf05dddbaaf 100644 --- a/magic/Magdir/python +++ b/magic/Magdir/python @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: python,v 1.34 2017/08/14 07:40:38 christos Exp $ +# $File: python,v 1.36 2019/04/09 18:28:25 christos Exp $ # python: file(1) magic for python # # Outlook puts """ too for urgent messages @@ -27,7 +27,7 @@ 0 belong 0x160d0d0a python 3.5.1- byte-compiled 0 belong 0x170d0d0a python 3.5.2+ byte-compiled 0 belong 0x330d0d0a python 3.6 byte-compiled -0 belong 0x3e0d0d0a python 3.7 byte-compiled +0 belong 0x420d0d0a python 3.7 byte-compiled 0 search/1/w #!\ /usr/bin/python Python script text executable @@ -45,7 +45,8 @@ # from module.submodule import func1, func2 -0 regex \^from[\040\t\f\r\n]+([A-Za-z0-9_]|\\.)+[\040\t\f\r\n]+import.*$ Python script text executable +0 search/8192 import +>0 regex \^from[\040\t\f\r\n]+([A-Za-z0-9_]|\\.)+[\040\t\f\r\n]+import.*$ Python script text executable !:strength + 15 !:mime text/x-python @@ -63,7 +64,8 @@ !:mime text/x-python # import module [as abrev] -0 regex \^import\ [_[:alpha:]]+\ as\ [[:alpha:]][[:space:]]*$ Python script text executable +0 search/8192 import +>0 regex \^import\ [_[:alpha:]]+\ as\ [[:alpha:]][[:space:]]*$ Python script text executable !:mime text/x-python # comments @@ -86,12 +88,14 @@ !:mime text/x-python # class name[(base classes,)]: [pass] -0 regex \^class\ [_[:alpha:]]+(\\(.*\\))?(\ )*:([\ \t]+pass)?$ Python script text executable +0 search/8192 class +>0 regex \^class\ [_[:alpha:]]+(\\(.*\\))?(\ )*:([\ \t]+pass)?$ Python script text executable !:strength + 15 !:mime text/x-python # def name(*args, **kwargs): -0 regex \^[[:space:]]{0,50}def\ {1,50}[_a-zA-Z]{1,100} ->&0 regex \\(([[:alpha:]*_,\ ]){0,255}\\):$ Python script text executable +0 search/8192 def\ +>0 regex \^[[:space:]]{0,50}def\ {1,50}[_a-zA-Z]{1,100} +>>&0 regex \\(([[:alpha:]*_,\ ]){0,255}\\):$ Python script text executable !:strength + 15 !:mime text/x-python |
