Created
July 27, 2012 20:38
-
-
Save steeve/3190373 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iterate_on_attributes(): | |
current = dll.ldap_first_attribute(self._l, self._message, byref(self._berElem)) | |
while current: | |
yield current | |
current = dll.ldap_next_attribute(self._l, self._message, self._berElem) | |
for attrib in iterate_on_attributes(): | |
print attrib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment