Remove vestiges of support for stdin input to abcfield.py.

I'm not using it, and it complicates things a bit.
This commit is contained in:
Jim Hague 2017-10-12 13:29:50 +01:00
parent 5622d5d239
commit f267b21c21
1 changed files with 3 additions and 7 deletions

View File

@ -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))