MCPcopy Create free account
hub / github.com/achillean/shodan-python / escape_data

Function escape_data

shodan/cli/helpers.py:38–42  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

36
37
38def escape_data(args):
39 # Make sure the string is unicode so the terminal can properly display it
40 # We do it using format() so it works across Python 2 and 3
41 args = u'{}'.format(args)
42 return args.replace('\n', '\\n').replace('\r', '\\r').replace('\t', '\\t')
43
44
45def timestr():

Callers 3

parseFunction · 0.90
searchFunction · 0.90
streamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected