def __checkIsFinalizedName(filename):
 if filename.split('/')[2].startswith(_CREATION_HANDLE_PREFIX):
  raise InvalidFileNameError(('File %s should have finalized filename' % filename))

def __checkIsFinalizedName ( filename ) : if filename . split ( '/' ) [ 2 ] . startswith ( _CREATION_HANDLE_PREFIX ) : raise InvalidFileNameError ( ( 'File %s should have finalized filename' % filename ) )
check if a filename is finalized .