1.1 --- a/simplex/__init__.py Sat Oct 01 16:01:22 2011 +0200
1.2 +++ b/simplex/__init__.py Sun Oct 02 16:32:41 2011 +0200
1.3 @@ -46,7 +46,7 @@
1.4 current_key = None
1.5 start_pos = 0
1.6
1.7 - for i, record in enumerate(reader.get_records()):
1.8 + for i, record in enumerate(reader):
1.9 key = accessor.get_key(record)
1.10
1.11 # Where duplicate keys are permitted, the first record employing the key
1.12 @@ -100,7 +100,7 @@
1.13 employing the term or None if no such record was found.
1.14 """
1.15
1.16 - for record in reader.get_records():
1.17 + for record in reader:
1.18 key = accessor.get_key(record)
1.19 if term == key:
1.20 return record