From b49706793dd6358d931f45dadc4def066aa6670b Mon Sep 17 00:00:00 2001 From: rohanday3 Date: Thu, 25 Jul 2024 23:49:19 +0200 Subject: [PATCH] Removed signal import on win32 --- certstream/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/certstream/cli.py b/certstream/cli.py index ae29fe1..86bcd78 100644 --- a/certstream/cli.py +++ b/certstream/cli.py @@ -5,8 +5,6 @@ import sys import termcolor -from signal import signal, SIGPIPE, SIG_DFL - import certstream parser = argparse.ArgumentParser(description='Connect to the CertStream and process CTL list updates.') @@ -21,7 +19,9 @@ def main(): args = parser.parse_args() # Ignore broken pipes - signal(SIGPIPE, SIG_DFL) + if not sys.platform.startswith("win32"): + from signal import signal, SIGPIPE, SIG_DFL + signal(SIGPIPE, SIG_DFL) log_level = logging.INFO if args.verbose: