autobuild: Fix autobuild for python3
authorVolker Lendecke <vl@samba.org>
Fri, 14 Jun 2019 12:55:03 +0000 (14:55 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 18 Jun 2019 05:34:07 +0000 (05:34 +0000)
"keys()" in python3 returns an unmodifiable view object. Two lines
down we might want to modify it, which python3 does not allow.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
script/autobuild.py

index 13dd57987c4449c81ac20206a9b68ce8539d35ee..b62bea25d4d49dd302b5997483fcb7cbc96cb3ae 100755 (executable)
@@ -141,7 +141,7 @@ builddirs = {
     "pidl": "pidl"
 }
 
-defaulttasks = builddirs.keys()
+defaulttasks = list(builddirs.keys())
 
 if os.environ.get("AUTOBUILD_SKIP_SAMBA_O3", "0") == "1":
     defaulttasks.remove("samba-o3")