Detect-It-Easy/db/Binary/text.python.1.sg
2022-07-27 18:57:17 +02:00

18 lines
396 B
Text

// DIE's signature file
init("source","python");
function detect(bShowType,bShowVersion,bShowOptions)
{
var sText=Binary.getHeaderString();
if((/import\s/.test(sText)) &&(/class\s/.test(sText))&&(/self/.test(sText)))
{
if(/\sdef\s/.test(sText))
{
bDetected=1;
}
}
return result(bShowType,bShowVersion,bShowOptions);
}