X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fjjb-init-project.py;h=2595e38594822b433aa5ed49a0ab80f151f28488;hb=4934e4b08bc0892b6a0447709f640b204eaec48c;hp=64b58210731b60bd8dd0124a8f909c6bb78b4a55;hpb=82024e6aca3c36bbee4e00f34e91f79367955a7a;p=releng%2Fbuilder.git diff --git a/scripts/jjb-init-project.py b/scripts/jjb-init-project.py index 64b582107..2595e3859 100644 --- a/scripts/jjb-init-project.py +++ b/scripts/jjb-init-project.py @@ -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"