From c5c74832680d5aa376a386c9519b3364087904c8 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 5 Oct 2021 10:00:48 +1100 Subject: [PATCH] Remove shebang lines from generated pelicanconf.py and publishconf.py. These configuration files do not need a #! line as they are not intended to be executed directly and are not marked as executable. (In practise this doesn't cause any problems - it just came up in a Guix bug report because Guix transforms the #! lines.) The "coding: utf-8" lines are also no longer required now that Pelican is Python 3 only. --- pelican/tools/templates/pelicanconf.py.jinja2 | 3 --- pelican/tools/templates/publishconf.py.jinja2 | 3 --- 2 files changed, 6 deletions(-) diff --git a/pelican/tools/templates/pelicanconf.py.jinja2 b/pelican/tools/templates/pelicanconf.py.jinja2 index 4ba0208c..1112ac88 100644 --- a/pelican/tools/templates/pelicanconf.py.jinja2 +++ b/pelican/tools/templates/pelicanconf.py.jinja2 @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # - AUTHOR = {{author}} SITENAME = {{sitename}} SITEURL = '' diff --git a/pelican/tools/templates/publishconf.py.jinja2 b/pelican/tools/templates/publishconf.py.jinja2 index bb18966b..e119222c 100755 --- a/pelican/tools/templates/publishconf.py.jinja2 +++ b/pelican/tools/templates/publishconf.py.jinja2 @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- # - # This file is only used if you use `make publish` or # explicitly specify it as your config file.