diff roundup/backends/back_anydbm.py @ 7038:f524ddc27af8

replace for a,b in x.items() with for a in x.keys() where the value from items is not used. Recommended refactor from Tom Ekberg after seeing flake8 fixes for unused loop variables.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Oct 2022 22:16:56 -0400
parents 921bf9bdeea9
children ca90f7270cd4 506c86823abb
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Mon Oct 10 15:43:13 2022 -0400
+++ b/roundup/backends/back_anydbm.py	Wed Oct 12 22:16:56 2022 -0400
@@ -583,7 +583,7 @@
             return journal
         for j in journal:
             if j[3] == 'set':
-                for k, _v in j[4].items():
+                for k in j[4].keys():
                     if k in pwprops and j[4][k]:
                         j[4][k] = password.JournalPassword(j[4][k])
         return journal

Roundup Issue Tracker: http://roundup-tracker.org/