summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorMichael Wood <esiotrot@gmail.com>2010-06-25 08:46:13 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-25 08:46:13 +0200
commit92cfc632871e742dedf26ebd43ac789ebed0860c (patch)
treec4b901461d6ab841b54203f89e441fb3efb157d2 /source4/scripting/python
parent163ed44903fd6d9bf3047d0987bcbb8f0a28e7e2 (diff)
downloadsamba-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>
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-xsource4/scripting/python/samba/upgradehelpers.py2
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)