Skip to content

Commit

Permalink
squash. use enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Jul 22, 2024
1 parent 90e5f38 commit 59fbe33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/irods/test/test_prep_genquery_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''))
Expand Down

0 comments on commit 59fbe33

Please sign in to comment.