33
44See http://www.python-ldap.org/ for details.
55
6- \$Id: dn.py,v 1.12 2014/05/20 20:15:15 stroeder Exp $
6+ \$Id: dn.py,v 1.13 2015/06/06 09:21:37 stroeder Exp $
77
88Compability:
99- Tested with Python 2.0+
@@ -31,7 +31,7 @@ def escape_dn_chars(s):
3131 s = s .replace ('>' ,'\\ >' )
3232 s = s .replace (';' ,'\\ ;' )
3333 s = s .replace ('=' ,'\\ =' )
34- s = s .replace ('\000 ' ,'\\ \000 ' )
34+ s = s .replace ('\000 ' ,'\\ \000 ' )
3535 if s [0 ]== '#' or s [0 ]== ' ' :
3636 s = '' .join (('\\ ' ,s ))
3737 if s [- 1 ]== ' ' :
@@ -43,7 +43,7 @@ def str2dn(dn,flags=0):
4343 """
4444 This function takes a DN as string as parameter and returns
4545 a decomposed DN. It's the inverse to dn2str().
46-
46+
4747 flags describes the format of the dn
4848
4949 See also the OpenLDAP man-page ldap_str2dn(3)
@@ -69,7 +69,7 @@ def dn2str(dn):
6969def explode_dn (dn ,notypes = 0 ,flags = 0 ):
7070 """
7171 explode_dn(dn [, notypes=0]) -> list
72-
72+
7373 This function takes a DN and breaks it up into its component parts.
7474 The notypes parameter is used to specify that only the component's
7575 attribute values be returned and not the attribute types.
@@ -95,7 +95,7 @@ def explode_dn(dn,notypes=0,flags=0):
9595def explode_rdn (rdn ,notypes = 0 ,flags = 0 ):
9696 """
9797 explode_rdn(rdn [, notypes=0]) -> list
98-
98+
9999 This function takes a RDN and breaks it up into its component parts
100100 if it is a multi-valued RDN.
101101 The notypes parameter is used to specify that only the component's
0 commit comments