Fix the communication issue between control and compute nodes
[releng/builder.git] / scripts / jjb-init-project.py
index 64b58210731b60bd8dd0124a8f909c6bb78b4a55..2595e38594822b433aa5ed49a0ab80f151f28488 100644 (file)
@@ -73,7 +73,7 @@ if cfg.get("STREAMS"):  # this is a list of single-key dicts
 else:
     streams = {"boron": jjblib.STREAM_DEFAULTS["boron"]}
 
-first_stream = streams.iterkeys().next()  # Keep master branch at top.
+first_stream = next(iter(streams))  # Keep master branch at top.
 sonar_branch = streams[first_stream]["branch"]
 # Create YAML to list branches to create jobs for
 str_streams = "stream:\n"