From 9ecfc43751c42d4cdd288b8a1b28ba3a7fa6c650 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 26 Dec 2021 19:18:15 -0800 Subject: [PATCH] Fix usage of stdout, stderr, second argument going to end param. --- recycle_files.py | 2 +- watchforlinks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recycle_files.py b/recycle_files.py index 7c42002..7449fa8 100644 --- a/recycle_files.py +++ b/recycle_files.py @@ -8,4 +8,4 @@ for line in pipeable.go(): pipeable.stdout(line) send2trash.send2trash(line) else: - pipeable.stderr('Not a file', line) + pipeable.stderr(f'Not a file {line}') diff --git a/watchforlinks.py b/watchforlinks.py index cde8e92..f6104a6 100644 --- a/watchforlinks.py +++ b/watchforlinks.py @@ -46,7 +46,7 @@ def loop_once(extension, regex=None): path = pathclass.Path(passwordy.urandom_hex(12)).add_extension(extension) pyperclip.copy('') - pipeable.stdout(path.basename, text) + pipeable.stdout(f'{path.basename} {text}') path.write('w', text, encoding='utf-8') def loop_forever(extension, regex):