This commit is contained in:
anki-code 2020-04-01 13:06:16 +03:00
parent a1dcb216f1
commit 090c08d341

View file

@ -4,9 +4,13 @@ from sys import exit
from argparse import RawTextHelpFormatter
from urllib.parse import urlparse
from base64 import b64encode
from signal import signal, SIGINT
from .shell import *
XXH_VERSION = '0.7.8'
XXH_VERSION = '0.7.9'
def sigint_handler(signal_received, frame):
sys.exit(0)
class xxh:
def __init__(self):
@ -574,6 +578,9 @@ class xxh:
self.verbose = opt.verbose
self.vverbose = opt.vverbose
if not self.verbose:
signal(SIGINT, sigint_handler)
if not opt.destination:
opt.destination = '`'
self.destination_exists = False