original_docstring:  grabs the .pylintrc file from the repository 
docstring: grabs the .pylintrc file from the repository
docstring_tokens: grabs the . pylintrc file from the repository
code: def load_pylintrc(repo: RepoLinter, clear_cache: bool = False) -> Optional[ConfigParser]:
      """ grabs the .pylintrc file from the repository """
  
      for filepath in repo.config[CATEGORY]["pylintrc_locations"]:
          contents = repo.cached_get_file(filepath, clear_cache)
          if not contents:
              continue
  
          config = ConfigParser()
          if not contents.content:
              return None
          config.read_string(contents.decoded_content.decode("utf-8"))
          logger.debug("Successfully loaded {}", filepath)
          return config
      return None
code_tokens: def load_pylintrc ( repo : RepoLinter , clear_cache : bool = False ) -> Optional [ ConfigParser ] : for filepath in repo . config [ CATEGORY ] [ "pylintrc_locations" ] : contents = repo . cached_get_file ( filepath , clear_cache ) if not contents : continue config = ConfigParser ( ) if not contents . content : return None config . read_string ( contents . decoded_content . decode ( "utf-8" ) ) logger . debug ( "Successfully loaded {}" , filepath ) return config return None
short_docstring: grabs the .pylintrc file from the repository
short_docstring_tokens: grabs the . pylintrc file from the repository
comment: """ grabs the .pylintrc file from the repository """