From f267b21c217e36e36b99e73eb3cb8af08a1568e8 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 12 Oct 2017 13:29:50 +0100 Subject: [PATCH] Remove vestiges of support for stdin input to abcfield.py. I'm not using it, and it complicates things a bit. --- abcfield.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/abcfield.py b/abcfield.py index 1da24a5..a342a69 100755 --- a/abcfield.py +++ b/abcfield.py @@ -285,11 +285,7 @@ if __name__ == "__main__": help='input ABC file') args = parser.parse_args() - res = False - if args.input: - path = pathlib.Path(args.input.name) - with path.open() as f: - res = process(f, path.parent, args) - else: - res = process(sys.stdin, ".", args) + path = pathlib.Path(args.input.name) + with path.open() as f: + res = process(f, path.parent, args) sys.exit(int(not res))