diff abcfield.py @ 734:e896cf93fe98

Remove vestiges of support for stdin input to abcfield.py. I'm not using it, and it complicates things a bit.
author Jim Hague <jim.hague@acm.org>
date Thu, 12 Oct 2017 13:29:50 +0100
parents 841f7c19cb55
children 68f926e61d16
line wrap: on
line diff
--- 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))