diff --git a/Lib/ldap/controls/sss.py b/Lib/ldap/controls/sss.py index 7899f04..5d4955d 100644 --- a/Lib/ldap/controls/sss.py +++ b/Lib/ldap/controls/sss.py @@ -129,7 +129,5 @@ def decodeControlValue(self, encoded): # backward compability class attributes self.result = self.sortResult self.attribute_type_error = self.attributeType - # not sure whether to keep this - self.result_code = sort_result.prettyPrint() KNOWN_RESPONSE_CONTROLS[SSSResponseControl.controlType] = SSSResponseControl diff --git a/Lib/ldap/controls/vlv.py b/Lib/ldap/controls/vlv.py index 4b3d931..74d107b 100644 --- a/Lib/ldap/controls/vlv.py +++ b/Lib/ldap/controls/vlv.py @@ -139,7 +139,5 @@ def decodeControlValue(self,encoded): self.content_count = self.contentCount self.result = self.virtualListViewResult self.context_id = self.contextID - # not sure whether to keep this - self.result_code = virtual_list_view_result.prettyPrint() KNOWN_RESPONSE_CONTROLS[VLVResponseControl.controlType] = VLVResponseControl