mirror of
https://github.com/xxh/xxh
synced 2024-11-23 12:23:04 +00:00
0.7.9 #72
This commit is contained in:
parent
a1dcb216f1
commit
090c08d341
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue