From a05722fc929184719cca93c971b256c1f0c5b09c Mon Sep 17 00:00:00 2001 From: alexzvk Date: Tue, 29 Nov 2022 18:19:02 -0500 Subject: [PATCH] forgot variable assignment for previous commit --- hooks/post_gen_project.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index a8898e8e7..f74e74aec 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -329,9 +329,8 @@ def handle_licenses(): "The Unlicense": "UNLICENSE", } with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f: - selected_title = f.readline() - selected_title.rstrip() - + selected_title = f.readline().rstrip() + if selected_title == "Not open source\n": os.remove("CONTRIBUTORS.txt") shutil.rmtree("licenses")