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