python3 - 2to3 + miscell obvious tweaks
[sfa.git] / sfa / methods / GetGids.py
index 197e522..1e2349f 100644 (file)
@@ -41,7 +41,7 @@ class GetGids(Method):
 
         allowed_fields = ['hrn', 'type', 'gid']
         for record in records:
-            for key in record.keys():
+            for key in list(record.keys()):
                 if key not in allowed_fields:
                     del(record[key])
         return records