Skip to content

Commit 328fd85

Browse files
committed
use tr to filter invalid characters, fix #1
1 parent db71b1a commit 328fd85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def cleanup(*args):
5050

5151
DUMP_CMD = 'mysqldump -h {host} -P {port} -u {user} --password={password} {db} {table} ' \
5252
'--default-character-set=utf8 -X'.format(**config['mysql'])
53+
54+
# For removing invalid characters in xml stream.
5355
REMOVE_INVALID_PIPE = r'tr -d "\00\01\02\03\04\05\06\07\10\13\14\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37"'
5456

5557
BINLOG_CFG = {key: config['mysql'][key] for key in ['host', 'port', 'user', 'password', 'db']}

0 commit comments

Comments
 (0)