1.1 --- a/test_scan.py Sat Oct 01 00:40:38 2011 +0200
1.2 +++ b/test_scan.py Sat Oct 01 00:56:16 2011 +0200
1.3 @@ -13,13 +13,13 @@
1.4 sys.exit(1)
1.5
1.6 f = open(filename)
1.7 -tf = TextFile(f, keys)
1.8 +reader = TextFile(f, keys)
1.9 try:
1.10 for term in terms:
1.11 - tf.seek(0)
1.12 + reader.seek(0)
1.13
1.14 t = time.time()
1.15 - line = find_in_file(tf, term)
1.16 + line = find_in_file(reader, reader, term)
1.17 if line:
1.18 print "Found (at %s seconds)...\n%s" % (time.time() - t, line)
1.19 finally: