def needs_format_conversion(datadir, version=CURRENT_FORMAT_VERSION):
return isdir(datadir) and version != _get_current_format(datadir)<EOL>
Returns True if `datadir` requires conversion to format version specified by `version`

:param datadir: The datadir to convert.
:param version: The version to convert TO.