MCPcopy Create free account
hub / github.com/d78ui98/APKDeepLens / mod_print

Method mod_print

APKDeepLens.py:30–37  ·  view source on GitHub ↗

Better mod print. It gives the line number, file name in which error occured.

(text_output, color)

Source from the content-addressed store, hash-verified

28
29 @staticmethod
30 def mod_print(text_output, color):
31 """
32 Better mod print. It gives the line number, file name in which error occured.
33 """
34 stack = traceback.extract_stack()
35 filename, line_no, func_name, text = stack[-2]
36 formatted_message = f"{filename}:{line_no}: {text_output}"
37 print(color + formatted_message + util.ENDC)
38
39 @staticmethod
40 def print_summary(results_dict):

Callers 1

APKDeepLens.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected