Fix usage of stdout, stderr, second argument going to end param.
This commit is contained in:
parent
110551f1bf
commit
9ecfc43751
2 changed files with 2 additions and 2 deletions
|
@ -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}')
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue