autobuild: Drop 'py2' flag
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 14 Feb 2019 23:20:10 +0000 (12:20 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 15 Feb 2019 03:35:23 +0000 (04:35 +0100)
This isn't used any more. It was only being set, never referenced.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index 91098f51074ac47644a5a3c1908514c5ec262ccf..f2a29497cf273a35d47f28f2f1ac862ac631d34c 100755 (executable)
@@ -465,9 +465,8 @@ def run_cmd(cmd, dir=".", show=None, output=False, checkfail=True):
 class builder(object):
     '''handle build of one directory'''
 
-    def __init__(self, name, sequence, cp=True, py2=False):
+    def __init__(self, name, sequence, cp=True):
         self.name = name
-        self.py2 = py2
         if name in builddirs:
             self.dir = builddirs[name]
         else:
@@ -539,13 +538,7 @@ class buildlist(object):
             os.environ['AUTOBUILD_RANDOM_SLEEP_OVERRIDE'] = '1'
 
         for n in tasknames:
-            if n not in tasks and n.endswith("-py2"):
-                b = builder(n,
-                            tasks[n[:-4]],
-                            cp=n is not "pidl",
-                            py2=True)
-            else:
-                b = builder(n, tasks[n], cp=n is not "pidl")
+            b = builder(n, tasks[n], cp=n is not "pidl")
             self.tlist.append(b)
         if options.retry:
             rebase_remote = "rebaseon"