From 59fbe3372ef6b55dd71837c3821cac6c52a7fee0 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Mon, 22 Jul 2024 11:47:16 -0400 Subject: [PATCH] squash. use enumerate --- scripts/irods/test/test_prep_genquery_iterator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/irods/test/test_prep_genquery_iterator.py b/scripts/irods/test/test_prep_genquery_iterator.py index 46895653e9..f9bb9a0cb6 100644 --- a/scripts/irods/test/test_prep_genquery_iterator.py +++ b/scripts/irods/test/test_prep_genquery_iterator.py @@ -968,11 +968,9 @@ def main(rule_args, callback, rei): q1 = Query(callback, 'COLL_NAME', "COLL_NAME = '{self.admin.session_collection}'", parser=Parser.GENQUERY2) q2 = q1.copy() q3 = q2.copy() - iterations = 0 - for query in [q1, q2, q3]: + for iterations, query in enumerate([q1, q2, q3]): for r in query: callback.writeLine('stdout', f'[iteration={{iterations}}] row: {{r}}') - iterations += 1 INPUT null OUTPUT ruleExecOut '''))