first commit
This commit is contained in:
11
lib/tool_base/__init__.py
Normal file
11
lib/tool_base/__init__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from framework import logger
|
||||
from .subprocess import ToolSubprocess
|
||||
|
||||
|
||||
def d(data):
|
||||
if type(data) in [type({}), type([])]:
|
||||
import json
|
||||
|
||||
return "\n" + json.dumps(data, indent=4, ensure_ascii=False)
|
||||
else:
|
||||
return str(data)
|
||||
Reference in New Issue
Block a user