def process_paths(options, candidates=None, error=True):
 errors = check_path(options, rootdir=CURDIR, candidates=candidates)
 pattern = '%(filename)s:%(lnum)s:%(col)s: %(text)s'
 if (options.format == 'pylint'):
  pattern = '%(filename)s:%(lnum)s: [%(type)s] %(text)s'
 for er in errors:
  if options.abspath:
   er._info['filename'] = op.abspath(er.filename)
  LOGGER.warning(pattern, er._info)
 if error:
  sys.exit(int(bool(errors)))
 return errors

def process_paths ( options , candidates = None , error = True ) : errors = check_path ( options , rootdir = CURDIR , candidates = candidates ) pattern = '%(filename)s:%(lnum)s:%(col)s: %(text)s' if ( options . format == 'pylint' ) : pattern = '%(filename)s:%(lnum)s: [%(type)s] %(text)s' for er in errors : if options . abspath : er . _info [ 'filename' ] = op . abspath ( er . filename ) LOGGER . warning ( pattern , er . _info ) if error : sys . exit ( int ( bool ( errors ) ) ) return errors
process files and log errors .