X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fflad%2Fflad.py;h=8ca1093607a4b3d1f7b5fa5ca77ed07d5d93b637;hb=7f8cd12c390d9c7dacdec849982d7ca28f0a44e2;hp=232852f78dd20b63eb48491465360d738c4cf7f2;hpb=4dedeb2041f8b9f7796991c2ff513f9e3aa8b386;p=m_lib.git diff --git a/m_lib/flad/flad.py b/m_lib/flad/flad.py index 232852f..8ca1093 100644 --- a/m_lib/flad/flad.py +++ b/m_lib/flad/flad.py @@ -5,7 +5,8 @@ # Flad restriction error -checking_error = "flad.checking_error" +class checking_error(Exception): + pass # Default key/value separator def_keysep = ": " @@ -224,7 +225,7 @@ class Flad(list): flush_record = 1 # Set flag for all but 1st record if copy_rec: - for key in copy_rec.keys(): + for key in list(copy_rec.keys()): outfile.write(key + self.key_sep + copy_rec[key] + '\n') del copy_rec[key]