From 8a752f950f05fe09574b5a014a2f7a46cf891118 Mon Sep 17 00:00:00 2001 From: Giuseppe De Marco Date: Tue, 2 Oct 2018 11:15:52 +0200 Subject: [PATCH] _unparseEntryRecord now handle OrderedDict --- Lib/ldif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ldif.py b/Lib/ldif.py index 3f13ec68..c1e3323c 100644 --- a/Lib/ldif.py +++ b/Lib/ldif.py @@ -150,7 +150,7 @@ def _unparseEntryRecord(self,entry): entry dictionary holding an entry """ - for attr_type, values in sorted(entry.items()): + for attr_type, values in entry.items(): for attr_value in values: self._unparseAttrTypeandValue(attr_type,attr_value)