-streams = "stream:\n"
-for branch, options in branches.items():
- streams = streams + (" - %s:\n"
- " branch: '%s'\n" %
- (branch.replace('/', '-'),
- branch))
- streams = streams + " jdk: %s\n" % options["jdks"].split(",")[0].strip() # noqa
- streams = streams + " jdks:\n"
+str_streams = "stream:\n"
+for stream, options in streams.items():
+ str_streams += (" - %s:\n"
+ " branch: '%s'\n" %
+ (stream, options["branch"]))
+ str_streams += " jdk: %s\n" % options["jdks"].split(',')[0].strip() # noqa
+ str_streams += " jdks:\n"