def get_printable(iterable):
if iterable:<EOL><INDENT>return '<STR_LIT>'.join(i for i in iterable if i in string.printable)<EOL><DEDENT>return '<STR_LIT>'<EOL>
Get printable characters from the specified string.
Note that str.isprintable() is not available in Python 2.