From 8ce994a54b77eda653ad009995f1c65bf412135d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 17 Aug 2021 14:00:29 -0700 Subject: [PATCH] Replace use of clipext with pipeable, split_lines=False. --- voussoirkit/downloady.py | 4 ++-- voussoirkit/operatornotify.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 62ef345..2627ae7 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -6,9 +6,9 @@ import urllib import warnings from voussoirkit import bytestring -from voussoirkit import clipext from voussoirkit import dotdict from voussoirkit import pathclass +from voussoirkit import pipeable from voussoirkit import ratelimiter from voussoirkit import vlogging @@ -435,7 +435,7 @@ def touch(filename): def download_argparse(args): url = args.url - url = clipext.resolve(url) + url = pipeable.input(url, split_lines=False) callback = { None: Progress1, '1': Progress1, diff --git a/voussoirkit/operatornotify.py b/voussoirkit/operatornotify.py index bb4a2c3..07efb70 100644 --- a/voussoirkit/operatornotify.py +++ b/voussoirkit/operatornotify.py @@ -238,8 +238,8 @@ def main_log_context(argv, subject, *args, **kwargs): def operatornotify_argparse(args): notify( - subject='\n'.join(pipeable.input(args.subject)), - body='\n'.join(pipeable.input(args.body)), + subject=pipeable.input(args.subject, split_lines=False), + body=pipeable.input(args.body, split_lines=False), ) @vlogging.main_decorator