Blame file-5.10-strength.patch
|
|
3ddc694 |
diff --git a/magic/Magdir/python b/magic/Magdir/python
|
|
|
3ddc694 |
index d954ee6..52796ba 100644
|
|
|
3ddc694 |
--- a/magic/Magdir/python
|
|
|
3ddc694 |
+++ b/magic/Magdir/python
|
|
|
3ddc694 |
@@ -37,20 +37,24 @@
|
|
|
3ddc694 |
# from module.submodule import func1, func2
|
|
|
3ddc694 |
0 regex \^from\\s+(\\w|\\.)+\\s+import.*$ Python script text executable
|
|
|
3ddc694 |
!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|
|
Jan Kaluza |
7c6382d |
|
|
|
3ddc694 |
# def __init__ (self, ...):
|
|
|
3ddc694 |
0 search/4096 def\ __init__
|
|
|
3ddc694 |
>&0 search/64 self Python script text executable
|
|
|
3ddc694 |
!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|
|
|
3ddc694 |
|
|
|
3ddc694 |
# comments
|
|
|
3ddc694 |
-#0 search/4096 '''
|
|
|
3ddc694 |
-#>&0 regex .*'''$ Python script text executable
|
|
|
3ddc694 |
-#!:mime text/x-python
|
|
|
3ddc694 |
+0 search/4096 '''
|
|
|
3ddc694 |
+>&0 regex .*'''$ Python script text executable
|
|
|
3ddc694 |
+!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|
|
|
3ddc694 |
|
|
|
3ddc694 |
-#0 search/4096 """
|
|
|
3ddc694 |
-#>&0 regex .*"""$ Python script text executable
|
|
|
3ddc694 |
-#!:mime text/x-python
|
|
|
3ddc694 |
+0 search/4096 """
|
|
|
3ddc694 |
+>&0 regex .*"""$ Python script text executable
|
|
|
3ddc694 |
+!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|
|
|
3ddc694 |
|
|
|
3ddc694 |
# try:
|
|
|
3ddc694 |
# except: or finally:
|
|
|
3ddc694 |
@@ -60,8 +64,10 @@
|
|
|
3ddc694 |
!:mime text/x-python
|
|
|
3ddc694 |
>&0 search/4096 finally: Python script text executable
|
|
|
3ddc694 |
!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|
|
|
3ddc694 |
|
|
|
3ddc694 |
# def name(args, args):
|
|
|
3ddc694 |
-0 regex \^(\ |\\t){0,50}def\ {1,50}[a-zA-Z]{1,100}
|
|
|
3ddc694 |
->&0 regex \ {0,50}\\(([a-zA-Z]|,|\ ){1,255}\\):$ Python script text executable
|
|
|
3ddc694 |
+0 regex \^(\ |\\t)*def\ +[a-zA-Z]+
|
|
|
3ddc694 |
+>&0 regex \ *\\(([a-zA-Z]|,|\ )*\\):$ Python script text executable
|
|
|
3ddc694 |
!:mime text/x-python
|
|
|
3ddc694 |
+!:strength + 15
|