mirror of https://github.com/ansible/ansible.git
Fixes #4958 Truncate printed stdout if it contains non-printable characters
parent
78ec7c736f
commit
d7c8cf6ca7
@ -0,0 +1,7 @@
|
|||||||
|
def isprintable(instring):
|
||||||
|
#http://stackoverflow.com/a/3637294
|
||||||
|
import string
|
||||||
|
printset = set(string.printable)
|
||||||
|
isprintable = set(instring).issubset(printset)
|
||||||
|
return isprintable
|
||||||
|
|
Loading…
Reference in New Issue