From db2fab6628914c7f5a5d8eb2b77c4e209628761a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 13 Sep 2023 19:29:55 -0700 Subject: [PATCH] Use pipeable.stdout instead of print. --- clipboard.py | 5 +++-- repr.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/clipboard.py b/clipboard.py index 8d33483..eaa2bb1 100644 --- a/clipboard.py +++ b/clipboard.py @@ -5,13 +5,14 @@ import argparse import pyperclip import sys +from voussoirkit import pipeable + def clipboard_argparse(args): if args.output_file: open(args.output_file, 'w', encoding='utf-8').write(pyperclip.paste()) else: text = pyperclip.paste() - text = text.replace('\r', '') - print(text) + pipeable.stdout(text) return 0 diff --git a/repr.py b/repr.py index b574464..3e0152b 100644 --- a/repr.py +++ b/repr.py @@ -1,4 +1,4 @@ from voussoirkit import pipeable for line in pipeable.go(): - print(repr(line)) + pipeable.stdout(repr(line))