Replace use of clipext with pipeable, split_lines=False.

This commit is contained in:
voussoir 2021-08-17 14:00:29 -07:00
parent cb5228fe0c
commit 8ce994a54b
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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