summaryrefslogtreecommitdiff
path: root/utils/jssplitter_generator.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-16 12:01:04 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-16 12:22:12 -0800
commitbade33c7e490655c3f5b46d374129294f70449aa (patch)
treea563c72ad8f2938c5ae468ec335f4ade8ae421a4 /utils/jssplitter_generator.py
parent30ec4b6bba3cb256b700ca1d7438ddd01b3e948c (diff)
downloadsphinx-git-bade33c7e490655c3f5b46d374129294f70449aa.tar.gz
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 'utils/jssplitter_generator.py')
-rw-r--r--utils/jssplitter_generator.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/jssplitter_generator.py b/utils/jssplitter_generator.py
index 2ffe4cc99..c7bf162ef 100644
--- a/utils/jssplitter_generator.py
+++ b/utils/jssplitter_generator.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import json
import re
import subprocess
@@ -112,7 +111,7 @@ console.log(' ... ok\\n')
''' % js_src
-python_src = '''# -*- coding: utf-8 -*-
+python_src = '''\
"""
sphinx.search.jssplitter
~~~~~~~~~~~~~~~~~~~~~~~~