Skip to content

Commit

Permalink
use new-style classes in ldapurl
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 839a5ec commit 45efe4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 45efe4f

Please sign in to comment.