1.1 --- a/test_scan.py Sat Oct 29 00:30:20 2011 +0200
1.2 +++ b/test_scan.py Sun Apr 21 22:04:07 2013 +0200
1.3 @@ -27,9 +27,11 @@
1.4 f.seek(0)
1.5
1.6 t = time.time()
1.7 - line = find_in_file(f, accessor.get_key, term)
1.8 - if line:
1.9 - print "Found (at %s seconds)...\n%s" % (time.time() - t, line)
1.10 + lines = find_in_file(f, accessor.get_key, term)
1.11 + if lines:
1.12 + print >>sys.stderr, "Found (at %s seconds)..." % (time.time() - t)
1.13 + for line in lines:
1.14 + sys.stdout.write(line)
1.15 finally:
1.16 f.close()
1.17