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