From bade33c7e490655c3f5b46d374129294f70449aa Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 16 Dec 2018 12:01:04 -0800 Subject: Remove unnecessary encoding cookie from Python source files In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie. --- sphinx/theming.py | 1 - 1 file changed, 1 deletion(-) (limited to 'sphinx/theming.py') diff --git a/sphinx/theming.py b/sphinx/theming.py index 75e972cd0..3d7e67506 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ sphinx.theming ~~~~~~~~~~~~~~ -- cgit v1.2.3