X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fflad%2Ffladm.py;h=6143122e057a3d5a6113324c1962bfec46e70e4b;hp=28b3d8d78490d5948067ccb901e4a337505d2461;hb=9df34694f85776553a1153dcb71097d287a99290;hpb=4dedeb2041f8b9f7796991c2ff513f9e3aa8b386 diff --git a/m_lib/flad/fladm.py b/m_lib/flad/fladm.py index 28b3d8d..6143122 100644 --- a/m_lib/flad/fladm.py +++ b/m_lib/flad/fladm.py @@ -42,12 +42,12 @@ class Flad_WithMustKeys(Flad): if self.other_keys: for key in self.other_keys: - if copy_rec.has_key(key): + if key in copy_rec: outfile.write(key + def_keysep + copy_rec[key] + '\n') del copy_rec[key] if copy_rec: - for key in copy_rec.keys(): + for key in list(copy_rec.keys()): outfile.write(key + def_keysep + copy_rec[key] + '\n') del copy_rec[key]