replace test func with direct executable - test() + if __name__ == '__main__'
1 files changed, 2 insertions(+), 2 deletions(-) M unicode_hist.py
M unicode_hist.py => unicode_hist.py +2 -2
@@ 108,11 108,11 @@ def hist (args, bin_num=1): return -def test (): +if __name__ == '__main__': import random i = 0 lst = [] while i < 100: lst.append(random.randrange(1,101)) i = i + 1 - hist(lst, 11.0) + hist(lst, 11)