def get_doc_version(version):
 parsed_version = parse_version(version)
 if (is_release(version) and (parsed_version.documentation_revision is not None)):
  return parsed_version.release
 else:
  return version

def get_doc_version ( version ) : parsed_version = parse_version ( version ) if ( is_release ( version ) and ( parsed_version . documentation_revision is not None ) ) : return parsed_version . release else : return version
get the version string of flocker to display in documentation .