Skip to content

Commit ccfee13

Browse files
committed
updated for STDIN bug
1 parent cfc10fd commit ccfee13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/hist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ if __name__=="__main__":
2626
parser.add_option('-n', '--nosummary', help='run demos', action='store_false', dest='nosummary')
2727

2828
(opts, args) = parser.parse_args()
29-
29+
3030
if opts.f is None:
3131
if len(args) > 0:
3232
opts.f = args[0]
33-
elif opts.demo is False:
33+
elif opts.demo is None:
3434
opts.f = sys.stdin.readlines()
3535

3636
if opts.demo:

0 commit comments

Comments
 (0)