@@ -151,7 +151,7 @@ def create_test_report(msg, ecs_with_res, init_session_state, pr_nrs=None, gist_
151151 test_report = []
152152 if pr_nrs is not None :
153153 repo = pr_target_repo or GITHUB_EASYCONFIGS_REPO
154- pr_urls = ["https://github.com/%s/%s/pull/%s" % (pr_target_account , repo , pr_nr ) for pr_nr in pr_nrs ]
154+ pr_urls = ["https://github.com/%s/%s/pull/%s" % (pr_target_account , repo , x ) for x in pr_nrs ]
155155 test_report .extend ([
156156 "Test report for %s" % ', ' .join (pr_urls ),
157157 "" ,
@@ -193,7 +193,7 @@ def create_test_report(msg, ecs_with_res, init_session_state, pr_nrs=None, gist_
193193 descr = "(partial) EasyBuild log for failed build of %s" % ec ['spec' ]
194194
195195 if pr_nrs is not None :
196- descr += " (PR #%s)" % ', #' .join (str (pr_nr ) for pr_nr in pr_nrs )
196+ descr += " (PR #%s)" % ', #' .join (str (x ) for x in pr_nrs )
197197
198198 if easyblock_pr_nrs :
199199 descr += "" .join (" (easyblock PR #%s)" % nr for nr in easyblock_pr_nrs )
@@ -295,7 +295,7 @@ def post_pr_test_report(pr_nr, repo_type, test_report, msg, init_session_state,
295295
296296 if build_option ('include_easyblocks_from_pr' ):
297297 if repo_type == GITHUB_EASYCONFIGS_REPO :
298- easyblocks_pr_nrs = [int (eb_pr_nr ) for eb_pr_nr in build_option ('include_easyblocks_from_pr' )]
298+ easyblocks_pr_nrs = [int (x ) for x in build_option ('include_easyblocks_from_pr' )]
299299 comment_lines .append ("Using easyblocks from PR(s) %s" %
300300 ", " .join (["https://github.com/%s/%s/pull/%s" %
301301 (pr_target_account , GITHUB_EASYBLOCKS_REPO , easyblocks_pr_nr )
@@ -333,12 +333,12 @@ def overall_test_report(ecs_with_res, orig_cnt, success, msg, init_session_state
333333 dump_path = build_option ('dump_test_report' )
334334
335335 try :
336- pr_nrs = [int (pr_nr ) for pr_nr in build_option ('from_pr' )]
336+ pr_nrs = [int (x ) for x in build_option ('from_pr' )]
337337 except ValueError :
338338 raise EasyBuildError ("Argument to --from-pr must be a comma separated list of PR #s." )
339339
340340 try :
341- easyblock_pr_nrs = [int (pr_nr ) for pr_nr in build_option ('include_easyblocks_from_pr' )]
341+ easyblock_pr_nrs = [int (x ) for x in build_option ('include_easyblocks_from_pr' )]
342342 except ValueError :
343343 raise EasyBuildError ("Argument to --include-easyblocks-from-pr must be a comma separated list of PR #s." )
344344
0 commit comments