]> git.lizzy.rs Git - nhentai.git/commitdiff
remove __future__
authorRicterZ <ricterzheng@gmail.com>
Mon, 11 Jan 2021 03:03:45 +0000 (11:03 +0800)
committerRicterZ <ricterzheng@gmail.com>
Mon, 11 Jan 2021 03:03:45 +0000 (11:03 +0800)
nhentai/cmdline.py
nhentai/command.py
nhentai/constant.py
nhentai/doujinshi.py
nhentai/downloader.py
nhentai/parser.py
nhentai/utils.py

index b14ec4da6d38698b4ae09bb3022868fc6ed7b86d..ffc8a3e0a456e88f3869d959aa248fdd74bb6252 100644 (file)
@@ -1,5 +1,5 @@
 # coding: utf-8
-from __future__ import print_function
+
 import os
 import sys
 import json
index 16adc225a8a4b01887137f1fc6f51cf7c068829d..cbc50ed2ddaaf74b6790f7a451600054b8de261c 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python2.7
 # coding: utf-8
-from __future__ import unicode_literals, print_function
+
 import sys
 import signal
 import platform
index bce3604f02f6639e887bd66df2625c0ff9e95236..39c6f3e616b67f4cf878d348b971f954b8323a6a 100644 (file)
@@ -1,7 +1,6 @@
 # coding: utf-8
-from __future__ import unicode_literals, print_function
+
 import os
-import copy
 import tempfile
 
 try:
index 3c43d6277bc9eede17054dddbc490894e3ea4559..0170ad5eb99ac0403d4bd25fde592c4f5bde1b4d 100644 (file)
@@ -1,7 +1,6 @@
 # coding: utf-8
-from __future__ import print_function, unicode_literals
+
 from tabulate import tabulate
-from future.builtins import range
 
 from nhentai.constant import DETAIL_URL, IMAGE_URL
 from nhentai.logger import logger
index f11bb60b1682c1c046032864a99d86155703f7ef..4f26b6e29e57490cc473d70fc76e6b6b920d96c8 100644 (file)
@@ -1,5 +1,4 @@
 # coding: utf-
-from __future__ import unicode_literals, print_function
 
 import multiprocessing
 import signal
index 582add25ab160bf46199f17a4cf22a5494143fc9..7b9142cd3232b9cead8337a96e13e06471573e05 100644 (file)
@@ -1,5 +1,4 @@
 # coding: utf-8
-from __future__ import unicode_literals, print_function
 
 import os
 import re
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]