New convenience function ldap.escape_str()

This commit is contained in:
stroeder 2014-05-20 20:44:28 +00:00
parent 2f1f4b8cee
commit 78f49c0d54
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ ldap - base module
See http://www.python-ldap.org/ for details.
$Id: __init__.py,v 1.91 2014/05/20 20:27:55 stroeder Exp $
$Id: __init__.py,v 1.92 2014/05/20 20:44:28 stroeder Exp $
"""
# This is also the overall release version number
@ -82,7 +82,7 @@ class LDAPLock:
# Create module-wide lock for serializing all calls into underlying LDAP lib
_ldap_module_lock = LDAPLock(desc='Module wide')
from functions import open,initialize,init,get_option,set_option,escape_string
from functions import open,initialize,init,get_option,set_option,escape_str
from ldap.dn import explode_dn,explode_rdn,str2dn,dn2str
del str2dn

View File

@ -3,7 +3,7 @@ functions.py - wraps functions of module _ldap
See http://www.python-ldap.org/ for details.
\$Id: functions.py,v 1.29 2014/05/20 20:27:55 stroeder Exp $
\$Id: functions.py,v 1.30 2014/05/20 20:44:28 stroeder Exp $
Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
@ -24,7 +24,7 @@ __all__ = [
'open','initialize','init',
'explode_dn','explode_rdn',
'get_option','set_option',
'escape_string',
'escape_str',
]
import sys,pprint,_ldap,ldap