MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / check

Function check

extra/shutils/newlines.py:8–15  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

6import sys
7
8def check(filepath):
9 if filepath.endswith(".py"):
10 content = open(filepath, "rb").read()
11 pattern = "\n\n\n".encode("ascii")
12
13 if pattern in content:
14 index = content.find(pattern)
15 print(filepath, repr(content[index - 30:index + 30]))
16
17if __name__ == "__main__":
18 try:

Callers 2

wrapperFunction · 0.85
newlines.pyFile · 0.85

Calls 2

findMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…