mirror of
https://github.com/samba-team/samba.git
synced 2025-07-22 16:59:09 +03:00
s4 upgradeprovision: Try to support older Pythons.
Use "...".split(sep, 1) instead of "...".partition(sep). Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
This commit is contained in:
committed by
Matthias Dieter Wallnöfer
parent
163ed44903
commit
92cfc63287
@ -422,7 +422,7 @@ def identic_rename(ldbobj, dn):
|
||||
:param lbdobj: An Ldb Object
|
||||
:param dn: DN of the object to manipulate
|
||||
"""
|
||||
(before, sep, after)=str(dn).partition('=')
|
||||
(before, after) = str(dn).split('=', 1)
|
||||
ldbobj.rename(dn, ldb.Dn(ldbobj, "%s=foo%s" % (before, after)))
|
||||
ldbobj.rename(ldb.Dn(ldbobj, "%s=foo%s" % (before, after)), dn)
|
||||
|
||||
|
Reference in New Issue
Block a user