From 327e5cdf72f3e18b3e34d3f80eae8c0076ef9c6a Mon Sep 17 00:00:00 2001 From: d_ricottone Date: Sat, 15 Jul 2017 23:20:06 -0400 Subject: [PATCH] replace test func with direct executable - test() + if __name__ == '__main__' --- unicode_hist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unicode_hist.py b/unicode_hist.py index 466ebf0..342b466 100644 --- a/unicode_hist.py +++ b/unicode_hist.py @@ -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) -- 2.45.2