From 45efe4f81084da45b3787029ab0239f34f778957 Mon Sep 17 00:00:00 2001 From: stroeder Date: Sat, 18 Nov 2017 18:25:30 +0000 Subject: [PATCH] use new-style classes in ldapurl --- Lib/ldapurl.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/ldapurl.py b/Lib/ldapurl.py index fa072c9..dc81dd9 100644 --- a/Lib/ldapurl.py +++ b/Lib/ldapurl.py @@ -68,8 +68,7 @@ def ldapUrlEscape(s): """Returns URL encoding of string s""" return quote(s).replace(',','%2C').replace('/','%2F') - -class LDAPUrlExtension: +class LDAPUrlExtension(object): """ Class for parsing and unparsing LDAP URL extensions as described in RFC 4516. @@ -192,7 +191,7 @@ def unparse(self): return ','.join([ v.unparse() for v in self.values() ]) -class LDAPUrl: +class LDAPUrl(object): """ Class for parsing and unparsing LDAP URLs as described in RFC 4516.