def _save_submitted_todo(self, issue):
        """
        Writes the TODO issue information (the hashed info) to the
        `.pyg-submitted` file.

        :param list issue: A list containing info about the found TODO
        :rtype: bool
        :return: True on successful write, False if the issue exists already.
        """
        if not path.isfile('./.pyg-submitted'):
            with open('./.pyg-submitted', 'a+') as f:
                f.write("""
                This file was auto-generated by pygemony to help users keep-track of long-forgotten TODOs.
                For more information, please visit: https://github.com/GrappigPanda/pygemony
                """)
                f.write(issue[3])
                f.write('\n')
            return True

        if issue[3] in open('./.pyg-submitted').read():
            return False
        else:
            with open('./.pyg-submitted', 'ab') as f:
                f.write(issue[3])
                f.write('\n')
            return True
dataset/ETHPy150Open GrappigPanda/pygemony/pyg/github.py/GithubAPIManager._save_submitted_todo/original