mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 18:31:24 +02:00
remove darwin
This commit is contained in:
parent
69e0d1d6f1
commit
3a80c233d5
@ -1,7 +1,6 @@
|
||||
os:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
|
||||
language: python
|
||||
python:
|
||||
|
@ -11,6 +11,9 @@ import nhentai.constant as constant
|
||||
from nhentai.utils import urlparse
|
||||
from nhentai.logger import logger
|
||||
|
||||
reload(sys)
|
||||
sys.setdefaultencoding(sys.stdin.encoding)
|
||||
|
||||
|
||||
def banner():
|
||||
logger.info('''nHentai: あなたも変態。 いいね?
|
||||
@ -41,9 +44,11 @@ def cmd_parser():
|
||||
help='use proxy, example: http://127.0.0.1:1080')
|
||||
|
||||
try:
|
||||
sys.argv = list(map(lambda x: unicode(x.decode('utf-8')), sys.argv))
|
||||
sys.argv = list(map(lambda x: unicode(x.decode(sys.stdin.encoding)), sys.argv))
|
||||
except (NameError, TypeError):
|
||||
pass
|
||||
except UnicodeDecodeError:
|
||||
exit(0)
|
||||
|
||||
args, _ = parser.parse_args(sys.argv[1:])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user