File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -425,13 +425,15 @@ def get_next_record(self):
425
425
426
426
def get_next_record_diff (self ):
427
427
"""
428
- Get the difference between this and the next record. `None` of no next record.
428
+ Get the difference between this and the next record.
429
+
430
+ Return the diff or `None` of no next record.
429
431
"""
430
432
431
433
next_record = self .get_next_record ()
432
434
433
435
if next_record is not None :
434
- return self .diff_against (previous_record )
436
+ return self .diff_against (next_record )
435
437
436
438
return None
437
439
@@ -448,9 +450,12 @@ def get_prev_record(self):
448
450
449
451
def get_prev_record_diff (self ):
450
452
"""
451
- Get the difference between this and the previous record. `None` if no previous record.
453
+ Get the difference between this and the previous record.
454
+
455
+ The diff should be based on the previous record,
456
+ since the diff uses `old_record` and `new_record` semantics.
452
457
453
- The diff should be based on the previous record, since the diff uses `old_record` and `new_record` semantics .
458
+ Return the diff or `None` if no previous record .
454
459
"""
455
460
456
461
previous_record = self .get_prev_record ()
You can’t perform that action at this time.
0 commit comments