Use pipeable.ctrlc_return1.
This commit is contained in:
parent
fc9fb0ec58
commit
37dc5eaa35
1 changed files with 2 additions and 0 deletions
|
@ -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('.')
|
||||
|
|
Loading…
Reference in a new issue