Implement easy iterator

Bug #670901 reported by Morten Siebuhr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ldap (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-ldap

A small patch to ldif.py, that allows the parser to be used directly as an iterator over the entries in a LDIF-file:

p = LDIFParser(open('example.ldif', 'rb'))
for dn, entry in p.parse():
    print dn
    print entry

Tags: patch
Revision history for this message
Morten Siebuhr (msiebuhr) wrote :
tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.