From 15836bf662ae1d5c450581b1f737311ef451ef25 Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Wed, 7 Mar 2018 13:35:41 +0300 Subject: [PATCH] Inline pre_gen_project.py if-condition --- hooks/pre_gen_project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index cfe1349fe..ed2bef183 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -22,8 +22,7 @@ if hasattr(project_slug, 'isidentifier'): assert "\\" not in "{{ cookiecutter.author_name }}", "Don't include backslashes in author name." -using_docker = '{{ cookiecutter.use_docker }}'.lower() -if using_docker == 'n': +if '{{ cookiecutter.use_docker }}'.lower() == 'n': python_major_version = sys.version_info[0] if python_major_version == 2: print(