Fix usage of stdout, stderr, second argument going to end param.

This commit is contained in:
voussoir 2021-12-26 19:18:15 -08:00
parent 110551f1bf
commit 9ecfc43751
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 2 additions and 2 deletions

View file

@ -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}')

View file

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