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

Function main

extra/dbgtool/dbgtool.py:61–74  ·  view source on GitHub ↗
(inputFile, outputFile)

Source from the content-addressed store, hash-verified

59 return script
60
61def main(inputFile, outputFile):
62 if not os.path.isfile(inputFile):
63 print("ERROR: the provided input file '%s' is not a regular file" % inputFile)
64 sys.exit(1)
65
66 script = convert(inputFile)
67
68 if outputFile:
69 fpOut = open(outputFile, "w")
70 sys.stdout = fpOut
71 sys.stdout.write(script)
72 sys.stdout.close()
73 else:
74 print(script)
75
76if __name__ == "__main__":
77 usage = "%s -i <input file> [-o <output file>]" % sys.argv[0]

Callers 1

dbgtool.pyFile · 0.70

Calls 3

convertFunction · 0.85
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…