# coding: utf-8
-from __future__ import unicode_literals, print_function
import sys
import re
if filename include forbidden characters (\'/:,;*?"<>|) ,it replace space character(' ').
"""
# maybe you can use `--format` to select a suitable filename
- ban_chars = '\\\'/:,;*?"<>|'
+ ban_chars = '\\\'/:,;*?"<>|\t'
filename = s.translate(str.maketrans(ban_chars, ' '*len(ban_chars))).strip()
while filename.endswith('.'):
filename = filename[:-1]