diff --git a/cutlet/cli.py b/cutlet/cli.py index 0a144eb..cb57f26 100644 --- a/cutlet/cli.py +++ b/cutlet/cli.py @@ -2,12 +2,15 @@ import fileinput import sys -# Don't print an error on SIGPIPE -from signal import signal, SIGPIPE, SIG_DFL +if sys.platform != "win32": + # Don't print an error on SIGPIPE + from signal import signal, SIGPIPE, SIG_DFL + + signal(SIGPIPE, SIG_DFL) + def main(): - signal(SIGPIPE, SIG_DFL) - system = sys.argv[1] if len(sys.argv) > 1 else 'hepburn' + system = sys.argv[1] if len(sys.argv) > 1 else "hepburn" katsu = Cutlet(system)