def _translate_key(key):
 d = _get_deprecated_option(key)
 if d:
  return (d.rkey or key)
 else:
  return key

def _translate_key ( key ) : d = _get_deprecated_option ( key ) if d : return ( d . rkey or key ) else : return key
if key id deprecated and a replacement key defined .