diff options
author | Michael Wood <esiotrot@gmail.com> | 2010-06-25 08:46:13 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-25 08:46:13 +0200 |
commit | 92cfc632871e742dedf26ebd43ac789ebed0860c (patch) | |
tree | c4b901461d6ab841b54203f89e441fb3efb157d2 | |
parent | 163ed44903fd6d9bf3047d0987bcbb8f0a28e7e2 (diff) | |
download | samba-92cfc632871e742dedf26ebd43ac789ebed0860c.tar.gz samba-92cfc632871e742dedf26ebd43ac789ebed0860c.tar.bz2 samba-92cfc632871e742dedf26ebd43ac789ebed0860c.zip |
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>
-rwxr-xr-x | source4/scripting/python/samba/upgradehelpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index 377ac290b7..74a157d041 100755 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -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) |