(s)
| 21 | # |____/|_| |_|\___|_|_|\___|_| \__,_|_| \__| |
| 22 | |
| 23 | def _string(s): |
| 24 | out = [] |
| 25 | for co in bytearray(s): |
| 26 | c = chr(co) |
| 27 | if co >= 0x20 and co <= 0x7e and c not in '/$\'"`': |
| 28 | out.append(c) |
| 29 | else: |
| 30 | out.append('\\x%02x' % co) |
| 31 | return '"' + ''.join(out) + '"\n' |
| 32 | |
| 33 | |
| 34 | p = common.parser_commands.add_parser( |