Implement easy iterator

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

Bug Description

Binary package hint: python-ldap

A small patch to, 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

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  Edit
Everyone can see this information.

Other bug subscribers