PY3: fix string.rsplit usage (doens't exist in PY3)
authorNoel Power <noel.power@suse.com>
Wed, 1 Aug 2018 11:34:08 +0000 (12:34 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Sep 2018 04:16:19 +0000 (06:16 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
pidl/wscript

index adfbfe0..a2a15d3 100644 (file)
@@ -69,7 +69,7 @@ def build(bld):
     if 'POD2MAN' in bld.env and bld.env['POD2MAN'] != '':
         for src in pidl_manpages.keys():
             manpage = pidl_manpages[src]
-            section = string.rsplit(manpage, ".", 1)[1]
+            section = manpage.rsplit( ".", 1)[1]
             bld(rule='${POD2MAN} -c "Samba Documentation" -s %s ${SRC} ${TGT}' % section,
                 shell=True,
                 source=src,