def __init__(self, external_file=None):
    """Initialize the error fixer.

    Args:
      external_file: If included, all output will be directed to this file
          instead of overwriting the files the errors are found in.
    """
    errorhandler.ErrorHandler.__init__(self)

    self._file_name = None
    self._file_token = None
    self._external_file = external_file

    try:
      self._fix_error_codes = set([errors.ByName(error.upper()) for error in
                                   FLAGS.fix_error_codes])
    except __HOLE__ as ke:
      raise ValueError('Unknown error code ' + ke.args[0])
dataset/ETHPy150Open google/closure-linter/closure_linter/error_fixer.py/ErrorFixer.__init__