def ignore(item):
 filename = os.path.basename(item.path)
 (name, ext) = os.path.splitext(filename)
 dirs = os.path.split(item.path)
 if (not item.isdir()):
  if item.path.startswith('./test/results/'):
   return None
  if (item.path.startswith('./docsite/') and filename.endswith('_module.rst')):
   return None
 if (name in IGNORE_FILES):
  return None
 if (ext in IGNORE_EXTENSIONS):
  return None
 if any(((d in IGNORE_DIRS) for d in dirs)):
  return None
 return item

def ignore ( item ) : filename = os . path . basename ( item . path ) ( name , ext ) = os . path . splitext ( filename ) dirs = os . path . split ( item . path ) if ( not item . isdir ( ) ) : if item . path . startswith ( './test/results/' ) : return None if ( item . path . startswith ( './docsite/' ) and filename . endswith ( '_module.rst' ) ) : return None if ( name in IGNORE_FILES ) : return None if ( ext in IGNORE_EXTENSIONS ) : return None if any ( ( ( d in IGNORE_DIRS ) for d in dirs ) ) : return None return item
ignore a specific program update .