+ target_format, convert = conversions[format]
+ old_format = format
+
+ # make sure the conversion list is sequential
+ if int(old_format) + 1 != target_format:
+ sys.stderr.write("Something is wrong with the conversion chain.\n")
+ sys.exit(1)
+
+ for c in convert: