sparseutils

utilities for interacting with sparse files
Log | Files | Refs | README | LICENSE

commit f1fc1e99ffd50aa79d3772a6d016586ff9fc0800
parent 96df857d2edaa5593a04335d547faefb9537d02f
Author: Richard Ipsum <richardipsum@fastmail.co.uk>
Date:   Mon, 17 Apr 2017 12:38:10 +0100

Fix: put error message on stderr

Diffstat:
Msparseutils/sparsemap.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sparseutils/sparsemap.py b/sparseutils/sparsemap.py @@ -82,7 +82,8 @@ def main(): try: mode = os.stat(path).st_mode except os.error as e: - print("{}: Couldn't open `{}': {}".format(sys.argv[0], path, e.strerror)) + print("{}: Couldn't open `{}': {}".format(sys.argv[0], path, e.strerror), + file=sys.stderr) sys.exit(1) if not stat.S_ISREG(mode):