Skip to content

Commit

Permalink
minor code-cleaning in ldif
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder authored and Petr Viktorin committed Nov 22, 2017
1 parent 92d40af commit b22750f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lib/ldif.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ def _unparseEntryRecord(self,entry):
entry
dictionary holding an entry
"""
attr_types = entry.keys()[:]
attr_types.sort()
for attr_type in attr_types:
for attr_type in sorted(entry.keys()):
for attr_value in entry[attr_type]:
self._unparseAttrTypeandValue(attr_type,attr_value)

Expand Down

0 comments on commit b22750f

Please sign in to comment.