def fileBitFilter(mode):
 for bit in [stat.S_IXUSR, stat.S_IXGRP, stat.S_IXOTH, stat.S_ISUID, stat.S_ISGID]:
  if (mode & bit):
   mode -= bit
 return mode

def fileBitFilter ( mode ) : for bit in [ stat . S_IXUSR , stat . S_IXGRP , stat . S_IXOTH , stat . S_ISUID , stat . S_ISGID ] : if ( mode & bit ) : mode -= bit return mode
strip special filesystem bits from file .