(version)
return None
Returns the path to the cached data file if one exists.
Returns the path to the cached data file if one exists.
Returns the path to the cached data file if one exists .
def _get_cached_file_path(version):
  """Returns the path to the cached data file if one exists."""
  for path in H5_PATHS[version]:
    expanded_path = os.path.expanduser(path)
    try:
      if os.path.getsize(expanded_path) != H5_BYTES[version]:
        continue
      with open(expanded_path, 'rb'):
        return expanded_path
    except IOError:
      continue
  return None
def _get_cached_file_path ( version ) : for path in H5_PATHS [ version ] : expanded_path = os . path . expanduser ( path ) try : if os . path . getsize ( expanded_path ) != H5_BYTES [ version ] : continue with open ( expanded_path , 'rb' ) : return expanded_path except IOError : continue return None