From 385f682d7bfce81ba281faaffb0a250ab94985b8 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 21 Feb 2013 13:11:10 +0800 Subject: remove RT-Thread GUI from RT-Thread temporary --- .../utils/perfect_hash/example-PyModule/test.py | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 components/rtgui/utils/perfect_hash/example-PyModule/test.py (limited to 'components/rtgui/utils/perfect_hash/example-PyModule/test.py') diff --git a/components/rtgui/utils/perfect_hash/example-PyModule/test.py b/components/rtgui/utils/perfect_hash/example-PyModule/test.py deleted file mode 100644 index 02c06b6926..0000000000 --- a/components/rtgui/utils/perfect_hash/example-PyModule/test.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -import sys -from timeit import Timer -from stations import locator - -call = sys.argv[1] -print repr(call) -D = {} - -for line in file('stations.dat'): - c, l = [x.strip() for x in line.split(',')] - D[c] = l - -def test1(c): - return D[c] - -print repr(test1(call)) -t = Timer("test1(%r)" % call, "from __main__ import test1") -print t.timeit() - -# ----- - -def test2(c): - return locator(c) - -print repr(test2(call)) -t = Timer("test2(%r)" % call, "from __main__ import test2") -print t.timeit() -- cgit v1.3.1