]> git.lizzy.rs Git - nhentai.git/blobdiff - nhentai/utils.py
remove __future__
[nhentai.git] / nhentai / utils.py
index de40d944c712ac49f1fbd1f273b0697d970cd411..1ce429878f7dfbd8d7f71cc8fa2cfb5727491925 100644 (file)
@@ -1,5 +1,4 @@
 # coding: utf-8
-from __future__ import unicode_literals, print_function
 
 import sys
 import re
@@ -240,7 +239,7 @@ def format_filename(s):
     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]