From 37dc5eaa35aa927ab9d94ad03304113fe6d41dda Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 30 Nov 2020 22:05:54 -0800 Subject: [PATCH] Use pipeable.ctrlc_return1. --- contentreplace.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contentreplace.py b/contentreplace.py index 482d2fd..b69985b 100644 --- a/contentreplace.py +++ b/contentreplace.py @@ -6,6 +6,7 @@ import re import sys from voussoirkit import getpermission +from voussoirkit import pipeable from voussoirkit import spinal from voussoirkit import winglob @@ -36,6 +37,7 @@ def contentreplace(filename, replace_from, replace_to, autoyes=False, do_regex=F with f: f.write(content) +@pipeable.ctrlc_return1 def contentreplace_argparse(args): if args.recurse: files = spinal.walk_generator('.')