# HG changeset patch # User Jim Hague # Date 1507811390 -3600 # Node ID e896cf93fe9881eeb7dc3d0b735fc868126c57bd # Parent 841f7c19cb5587e9610a1a2bc06714830bd0cf71 Remove vestiges of support for stdin input to abcfield.py. I'm not using it, and it complicates things a bit. diff -r 841f7c19cb55 -r e896cf93fe98 abcfield.py --- a/abcfield.py Thu Oct 12 11:59:28 2017 +0100 +++ b/abcfield.py Thu Oct 12 13:29:50 2017 +0100 @@ -285,11 +285,7 @@ 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))