Skip to content

Commit

Permalink
cosmetic change: use constants in SEARCH_SCOPE_STR dict
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jul 17, 2016
1 parent 04fee78 commit 4de6216
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See http://www.python-ldap.org/ for details.
\$Id: ldapurl.py,v 1.78 2016/01/26 10:43:24 stroeder Exp $
\$Id: ldapurl.py,v 1.79 2016/07/17 19:44:19 stroeder Exp $
Python compability note:
This module only works with Python 2.0+ since
Expand Down Expand Up @@ -32,7 +32,13 @@
LDAP_SCOPE_SUBTREE = 2
LDAP_SCOPE_SUBORDINATES = 3

SEARCH_SCOPE_STR = {None:'',0:'base',1:'one',2:'sub',3:'subordinates'}
SEARCH_SCOPE_STR = {
None:'',
LDAP_SCOPE_BASE:'base',
LDAP_SCOPE_ONELEVEL:'one',
LDAP_SCOPE_SUBTREE:'sub',
LDAP_SCOPE_SUBORDINATES:'subordinates',
}

SEARCH_SCOPE = {
'':None,
Expand Down

0 comments on commit 4de6216

Please sign in to comment.