third_party/blink/tools/blinkpy/style/filereader.py
def process_file(self, file_path, **kwargs):
        """Process the given file by calling the processor's process() method.

        Args:
          file_path: The path of the file to process.
          **kwargs: Any additional keyword parameters that should be passed
                    to the processor's process() method.  The process()
                    method should support these keyword arguments.

        Raises:
          SystemExit: If no file at file_path exists.
        """
        self.file_count += 1

        if not self.filesystem.exists(file_path) and file_path != '-':
            _log.error("File does not exist: '%s'", file_path)
            # FIXME: This should throw or return instead of exiting directly.
            sys.exit(1)

        if not self._processor.should_process(file_path):
            _log.debug("Skipping file: '%s'", file_path)
            return
        _log.debug("Processing file: '%s'", file_path)

        try:
            lines = self._read_lines(file_path)
        except IOError as err:
            message = (
                "Could not read file. Skipping: '%s'\n  %s" % (file_path, err))
            _log.warning(message)
            return

        self._processor.process(lines, file_path, **kwargs)
Process the given file by calling the processor's process() method.

        Args:
          file_path: The path of the file to process.
          **kwargs: Any additional keyword parameters that should be passed
                    to the processor's process() method.  The process()
                    method should support these keyword arguments.

        Raises:
          SystemExit: If no file at file_path exists.
        
Process the given file by calling the processor's process() method.
Process the given file by calling the processor ' s process () method .
def process_file(self, file_path, **kwargs):
        self.file_count += 1
        if not self.filesystem.exists(file_path) and file_path != '-':
            _log.error("File does not exist: '%s'", file_path)
            sys.exit(1)
        if not self._processor.should_process(file_path):
            _log.debug("Skipping file: '%s'", file_path)
            return
        _log.debug("Processing file: '%s'", file_path)
        try:
            lines = self._read_lines(file_path)
        except IOError as err:
            message = (
                "Could not read file. Skipping: '%s'\n  %s" % (file_path, err))
            _log.warning(message)
            return
        self._processor.process(lines, file_path, **kwargs)
def process_file ( self , file_path , ** kwargs ) : self . file_count += 1 if not self . filesystem . exists ( file_path ) and file_path != '-' : _log . error ( "File does not exist: '%s'" , file_path ) sys . exit ( 1 ) if not self . _processor . should_process ( file_path ) : _log . debug ( "Skipping file: '%s'" , file_path ) return _log . debug ( "Processing file: '%s'" , file_path ) try : lines = self . _read_lines ( file_path ) except IOError as err : message = ( "Could not read file. Skipping: '%s'\n  %s" % ( file_path , err ) ) _log . warning ( message ) return self . _processor . process ( lines , file_path , ** kwargs )
Process the given file by calling the processor's process() method.
Process the given file by calling the processor ' s process () method .
"""Process the given file by calling the processor's process() method.

        Args:
          file_path: The path of the file to process.
          **kwargs: Any additional keyword parameters that should be passed
                    to the processor's process() method.  The process()
                    method should support these keyword arguments.

        Raises:
          SystemExit: If no file at file_path exists.
        """ # FIXME: This should throw or return instead of exiting directly.
If no file at file_path exists.
If no file at file_path exists .
SystemExit
self
file_path
The path of the file to process.
The path of the file to process .
**kwargs
Any additional keyword parameters that should be passed
to the processor's process() method.  The process()
method should support these keyword arguments.
Any additional keyword parameters that should be passed to the processor ' s process () method . The process () method should support these keyword arguments .