X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/9a78329ed18525c690e7d8b556bb891934f77517..49d58bdf61c8ee7da0de30a3c806e3964f583831:/pinch.py diff --git a/pinch.py b/pinch.py index 4a6158a..46e5af3 100644 --- a/pinch.py +++ b/pinch.py @@ -10,6 +10,7 @@ import os.path import shlex import shutil import subprocess +import sys import tempfile import types import urllib.parse @@ -58,7 +59,7 @@ class Verification: self.line_length = 0 def status(self, s: str) -> None: - print(s, end=' ', flush=True) + print(s, end=' ', file=sys.stderr, flush=True) self.line_length += 1 + len(s) # Unicode?? @staticmethod @@ -70,7 +71,7 @@ class Verification: length = len(message) cols = shutil.get_terminal_size().columns pad = (cols - (self.line_length + length)) % cols - print(' ' * pad + self._color(message, color)) + print(' ' * pad + self._color(message, color), file=sys.stderr) self.line_length = 0 if not r: raise VerificationError()