Skip to content

Commit 886d12f

Browse files
committed
fixed stdin for hist
1 parent d9371de commit 886d12f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/hist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ if __name__=="__main__":
2929
if opts.f is None:
3030
if len(args) > 0:
3131
opts.f = args[0]
32+
else:
33+
opts.f = sys.stdin.readlines()
3234

3335
if opts.f:
3436
plot_hist(opts.f, opts.h, opts.b, opts.p, opts.colour, opts.t, opts.x, opts.nosummary)

0 commit comments

Comments
 (0)