MCPcopy Create free account
hub / github.com/Telefonica/HomePWN / safe_string

Method safe_string

utils/npyscreen/wgwidget.py:709–769  ·  view source on GitHub ↗

Check that what you are trying to display contains only printable chars. (Try to catch dodgy input). Give it a string, and it will return a string safe to print - without touching the original. In Python 3 this function is not needed N.B. This will return

(self, this_string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

getAnnotationAndColorMethod · 0.80
display_valueMethod · 0.80
__init__Method · 0.80
display_valueMethod · 0.80
print_cursorMethod · 0.80
display_valueMethod · 0.80
display_valueMethod · 0.80
print_cursorMethod · 0.80
get_value_as_listMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 1

safe_filterMethod · 0.95

Tested by

no test coverage detected