Skip to content

Commit b32bcaf

Browse files
author
Alexandre Figura
committed
Document all_records attribute of class LDIFRecordList
The current documentation of this attribute was not displayed on the online doc.
1 parent 7846ba1 commit b32bcaf

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Lib/ldif.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -577,29 +577,26 @@ def parse_change_records(self):
577577

578578
class LDIFRecordList(LDIFParser):
579579
"""
580-
Collect all records of LDIF input into a single list.
581-
of 2-tuples (dn,entry). It can be a memory hog!
580+
Collect all records of a LDIF file. It can be a memory hog!
581+
582+
Records are stored in :attr:`.all_records` as a single list
583+
of 2-tuples (dn, entry), after calling :meth:`.parse`.
582584
"""
583585

584586
def __init__(
585587
self,
586588
input_file,
587589
ignored_attr_types=None,max_entries=0,process_url_schemes=None
588590
):
589-
"""
590-
See LDIFParser.__init__()
591-
592-
Additional Parameters:
593-
all_records
594-
List instance for storing parsed records
595-
"""
596591
LDIFParser.__init__(self,input_file,ignored_attr_types,max_entries,process_url_schemes)
592+
593+
#: List storing parsed records.
597594
self.all_records = []
598595
self.all_modify_changes = []
599596

600597
def handle(self,dn,entry):
601598
"""
602-
Append single record to dictionary of all records.
599+
Append a single record to the list of all records (:attr:`.all_records`).
603600
"""
604601
self.all_records.append((dn,entry))
605602

0 commit comments

Comments
 (0)