diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-16 23:01:04 +0300 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-16 23:22:12 +0300 |
commit | bade33c7e490655c3f5b46d374129294f70449aa (patch) | |
tree | a563c72ad8f2938c5ae468ec335f4ade8ae421a4 /sphinx/environment/collectors/indexentries.py | |
parent | 30ec4b6bba3cb256b700ca1d7438ddd01b3e948c (diff) |
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.
Diffstat (limited to 'sphinx/environment/collectors/indexentries.py')
-rw-r--r-- | sphinx/environment/collectors/indexentries.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sphinx/environment/collectors/indexentries.py b/sphinx/environment/collectors/indexentries.py index 45f2c6742..5ab309407 100644 --- a/sphinx/environment/collectors/indexentries.py +++ b/sphinx/environment/collectors/indexentries.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ sphinx.environment.collectors.indexentries ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |