def compatibility_fix(cf):
 for item in _FIXES:
  (old, new) = item
  try:
   cf[new]
  except KeyError:
   try:
    cf[new] = cf[old]
    del cf[old]
   except KeyError:
    pass

def compatibility_fix ( cf ) : for item in _FIXES : ( old , new ) = item try : cf [ new ] except KeyError : try : cf [ new ] = cf [ old ] del cf [ old ] except KeyError : pass
convert obsolete ini entries .