Skip to content

Commit 079d00f

Browse files
author
stroeder
committed
ldap.dn: use Boolean for notypes
1 parent 322573a commit 079d00f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/ldap-dn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The :mod:`ldap.dn` module defines the following functions:
4949
function :func:`escape_dn_chars`.
5050

5151

52-
.. function:: explode_dn(dn [, notypes=0[, flags=0]]) -> list
52+
.. function:: explode_dn(dn [, notypes=False[, flags=0]]) -> list
5353

5454
This function takes *dn* and breaks it up into its component parts. Each part
5555
is known as an RDN (Relative Distinguished Name). The optional *notypes*
@@ -60,7 +60,7 @@ The :mod:`ldap.dn` module defines the following functions:
6060
deprecated.
6161

6262

63-
.. function:: explode_rdn(rdn [, notypes=0[, flags=0]]) -> list
63+
.. function:: explode_rdn(rdn [, notypes=False[, flags=0]]) -> list
6464

6565
This function takes a (multi-valued) *rdn* and breaks it up into a list of
6666
characteristic attributes. The optional *notypes* parameter is used to specify

Lib/ldap/dn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def dn2str(dn):
6363
for rdn in dn
6464
])
6565

66-
def explode_dn(dn, notypes=0, flags=0):
66+
def explode_dn(dn, notypes=False, flags=0):
6767
"""
68-
explode_dn(dn [, notypes=0]) -> list
68+
explode_dn(dn [, notypes=False [, flags=0]]) -> list
6969
7070
This function takes a DN and breaks it up into its component parts.
7171
The notypes parameter is used to specify that only the component's
@@ -89,9 +89,9 @@ def explode_dn(dn, notypes=0, flags=0):
8989
return rdn_list
9090

9191

92-
def explode_rdn(rdn, notypes=0, flags=0):
92+
def explode_rdn(rdn, notypes=False, flags=0):
9393
"""
94-
explode_rdn(rdn [, notypes=0]) -> list
94+
explode_rdn(dn [, notypes=False [, flags=0]]) -> list
9595
9696
This function takes a RDN and breaks it up into its component parts
9797
if it is a multi-valued RDN.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy