def _get_alternates(self):
        alternates_path = os.path.join(self.path, 'objects', 'info', 'alternates')

        if os.path.exists(alternates_path):
            try:
                f = open(alternates_path)
                alts = f.read()
            finally:
                f.close()
            return alts.strip().splitlines()
        else:
            return []
Tests setting and turning off lifecycle configuration.
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo._get_alternates--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_lifecycle.py/TestSetLifecycle.test_set_lifecycle_and_reset